<template>
<main>
<form class="ui form" v-on:submit.prevent='handleSubmit'>
<div class="two fields">
<div class="field">
<label>Flip Name</label>
<input type="text" name="flipname" placeholder="4th of July 2017">
</div>
<div class="field">
<label>Promo set to apply to sitewide pages</label>
<div class="ui fluid search selection dropdown">
<input type="hidden" name="country">
<i class="dropdown icon"></i>
<div class="menu">
<div class="item" data-value="ao">q2_199</div>
<div class="item" data-value="af">q2_189</div>
</div>
</div>
</div>
</div>
<div class="field">
<div class="ui info icon small message">
<i class="clone icon"></i>
<div class="content">
<p>Below are our <b>"constant"</b> landing pages.<br>
Specify which page they will "mirror" next flip.</p>
</div>
</div>
</div>
<div class="four fields">
<div class="field">
<label>sitewide becomes...</label>
<select class="ui search selection dropdown" data-dropdown-pages data-page='sitewide'>
<option value="">select a page</option>
</select>
<!-- <div class="ui search selection dropdown" data-dropdown-pages>
<input type="hidden" name="gender">
<i class="dropdown icon"></i>
<div class="default text">page...</div>
<div class="menu">
<div class="item" data-value="male">Male</div>
<div class="item" data-value="female">Female</div>
</div>
</div> -->
</div>
<div class="field">
<label>rmsitewide</label>
<select class="ui search selection dropdown" data-dropdown-pages data-page='rmsitewide'>
<option value="">select a page</option>
</select>
</div>
<div class="field">
<label>sale</label>
<select class="ui search selection dropdown" data-dropdown-pages data-page='sale'>
<option value="">select a page</option>
</select>
</div>
<div class="field">
<label>social</label>
<select class="ui search selection dropdown" data-dropdown-pages data-page='social'>
<option value="">select a page</option>
</select>
</div>
</div>
<div class="four fields">
<div class="field">
<label>curso</label>
<select class="ui search selection dropdown" data-dropdown-pages data-page='curso'>
<option value="">select a page</option>
</select>
</div>
<div class="field">
<label>aprende</label>
<select class="ui search selection dropdown" data-dropdown-pages data-page='aprende'>
<option value="">select a page</option>
</select>
</div>
</div>
<!-- <div class="ui icon message">
<i class="inbox icon"></i>
<div class="content">
<div class="header">
drop assets here
</div>
</div>
</div> -->
<!-- <div class="field">
<label>criteo file</label>
<input type="file">
</div> -->
<input type="submit" class="ui button" value="submit" />
</form>
</main>
</template>
<script>
export default {
name: 'CreateFlip',
components: { },
methods: {
handleSubmit() {
console.log('submit')
}
},
mounted() {
},
ready() {
},
vuex: {
actions: {
// Key 'toggle' here just has to match
// the @click fn name in the template above.
// No need for methods { } functions
//toggle: toggleAddModal
}
}
}
$(function() {
$('[data-dropdown-pages]').dropdown({
//match: 'text',
//showOnFocus: false,
apiSettings: {
url: `${window.server}/get-page-names?ui=true`,
saveRemoteData: false
}
})
})
</script>