| @@ -1,66 +1,0 @@ | ||
| 1 | -<div class="cell grid-x acym__content margin-bottom-1" id="acym__forms__information"> | |
| 2 | - <div class="cell"> | |
| 3 | - <div class="grid-x grid-margin-x margin-y"> | |
| 4 | - <div class="cell medium-6 grid-x acym_vcenter"> | |
| 5 | - <label for="acym__forms__information__name" class="cell medium-6 large-4"> | |
| 6 | - <?php echo acym_translation('ACYM_FORM_NAME'); ?> | |
| 7 | - </label> | |
| 8 | - <input type="text" id="acym__forms__information__name" class="cell large-5" name="form[name]" v-model="form.name"> | |
| 9 | - </div> | |
| 10 | - <?php if ($data['form']->type != 'shortcode') { ?> | |
| 11 | - <div class="cell medium-6 grid-x acym_vcenter"> | |
| 12 | - <label for="acym__forms__information__page" class="cell medium-6 large-4"> | |
| 13 | - <?php echo acym_translation('ACYM_PAGE_SELECTION').acym_info('ACYM_PAGE_SELECTION_DESC'); ?> | |
| 14 | - </label> | |
| 15 | - <div class="cell medium-6"> | |
| 16 | - <select2multiple v-model="form.pages" | |
| 17 | - :name="'form[pages]'" | |
| 18 | - :value="<?php echo acym_escape(json_encode($data['form']->pages)); ?>" | |
| 19 | - :options="<?php echo acym_escape(json_encode($data['all_pages'])); ?>"></select2multiple> | |
| 20 | - </div> | |
| 21 | - </div> | |
| 22 | - <?php } ?> | |
| 23 | - <div class="cell medium-6 grid-x acym_vcenter"> | |
| 24 | - <?php | |
| 25 | - echo acym_switch( | |
| 26 | - 'form[active]', | |
| 27 | - $data['form']->active, | |
| 28 | - acym_translation('ACYM_ACTIVATED'), | |
| 29 | - [], | |
| 30 | - 'large-4 medium-6 small-9', | |
| 31 | - 'auto', | |
| 32 | - '', | |
| 33 | - null, | |
| 34 | - true, | |
| 35 | - 'v-model="form.active"' | |
| 36 | - ); | |
| 37 | - ?> | |
| 38 | - </div> | |
| 39 | - <div class="cell medium-6 grid-x acym_vcenter"> | |
| 40 | - <label for="acym__forms__available__language" class="cell medium-6 large-4"> | |
| 41 | - <?php echo acym_translation('ACYM_LANGUAGE_AVAILABLE').acym_info('ACYM_LANGUAGE_AVAILABLE_INFO'); ?> | |
| 42 | - </label> | |
| 43 | - | |
| 44 | - <div class="cell medium-6"> | |
| 45 | - <div class="cell medium-6"> | |
| 46 | - <select2multiple v-model="form['display_languages']" | |
| 47 | - :name="'form[display_languages]'" | |
| 48 | - :value="<?php echo acym_escape(json_encode($data['form']->display_languages)); ?>" | |
| 49 | - :options="<?php echo acym_escape(json_encode($data['all_languages'])); ?>"></select2multiple> | |
| 50 | - </div> | |
| 51 | - </div> | |
| 52 | - </div> | |
| 53 | - <?php | |
| 54 | - if ($data['form']->type == 'shortcode') { | |
| 55 | - echo '<div class="cell grid-x acym_vcenter">'; | |
| 56 | - echo '<p class="cell shrink" v-if="!form.id"><i class="acymicon-exclamation-triangle acym__color__orange acym__forms__information__shortcode__warning margin-right-1"></i>'.acym_translation( | |
| 57 | - 'ACYM_PLEASE_SAVE_FORM_TO_GET_SHORTCODE' | |
| 58 | - ).'</p>'; | |
| 59 | - echo '<p class="cell shrink" v-if="form.id">'.acym_translation('ACYM_SHORTCODE_COPY_PASTE').'</p>'; | |
| 60 | - echo '<code class="cell shrink acym__forms__information__shortcode margin-left-1" v-if="form.id">[acymailing_form_shortcode id="{{ form.id }}"]</code>'; | |
| 61 | - echo '</div>'; | |
| 62 | - } | |
| 63 | - ?> | |
| 64 | - </div> | |
| 65 | - </div> | |
| 66 | -</div> | |