PluginProbe
Instapage Plugin / trunk
Instapage Plugin vtrunk
trunk 3.2.11 3.2.12 3.2.13 3.2.14 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.10 3.5.11 3.5.12 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 All 28 releases
instapage / views / edit.php

edit.php in Instapage Plugin trunk, at views/edit.php

43 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * Template for Edit page tab in Instapage plugin dashboard.
5 */
6 ?>
7 <h2 class="ui-subtitle" data-bind="text: id() ? '<?php echo InstapageCmsPluginConnector::lang('Edit page'); ?>' : '<?php echo InstapageCmsPluginConnector::lang('Add page'); ?>' "></h2>
8 <form class="c-section l-space-tertiary" data-bind="visible: subAccounts().length">
9 <div class="ui-sub-section">
10 <div class="l-grid l-space-top-primary">
11 <div class="l-grid__cell l-grid__cell--1/3">
12 <label><?php echo InstapageCmsPluginConnector::lang('Workspace'); ?></label>
13 <select class="c-form-text-item__field is-not-empty" data-bind="options: subAccounts, optionsText: 'name', optionsValue: 'id', value: choosenSubAccount"></select>
14 </div>
15 <div class="l-grid__cell l-grid__cell--1/3">
16 <label><?php echo InstapageCmsPluginConnector::lang('Landing Page'); ?></label>
17 <select class="c-form-text-item__field is-not-empty" data-bind="options: landingPages, optionsText: 'title', optionsValue:'id', value: choosenLandingPage"></select>
18 </div>
19 <div class="l-grid__cell l-grid__cell--1/3" data-bind="css: {'has-danger': !isTypeValid()}">
20 <label><?php echo InstapageCmsPluginConnector::lang('Page Type'); ?></label>
21 <select class="c-form-text-item__field is-not-empty" data-bind="options: pageTypes, optionsText: 'title', optionsValue:'name', value: choosenLandingPageType"></select>
22 </div>
23 </div>
24 </div>
25 <div class="los-pollos c-form-text-item" data-bind="visible: choosenLandingPageType() === 'page', css: {'has-danger': !isSlugValid()}">
26 <span class="c-form-text-item__info"><?php echo InstapageCmsPluginConnector::getHomeURL() . '/'; ?></span>
27 <div>
28 <input class="c-form-text-item__field" data-bind="value: slug, event: {change: validateSlug}, css: {'is-not-empty': slug()}" type="textbox" />
29 <label class="c-form-text-item__label"><?php echo InstapageCmsPluginConnector::lang('URL for this page'); ?></label>
30 <div class="c-form-text-item__bar"></div>
31 <span class="c-form-text-item__info slug" data-bind="visible: !isSlugValid()">
32 <span><?php echo InstapageCmsPluginConnector::lang('Slug is invalid.'); ?></span>
33 <i class="material-icons c-form-text-item__info-icon"><?php echo InstapageCmsPluginConnector::lang('error'); ?></i>
34 </span>
35 </div>
36 </div>
37
38 <div class="ui-sub-section" style="margin-top: 20px;">
39 <button class="fx-ripple-effect c-button c-button--regular c-button--action" data-bind="click: publishPage" type="button" ><?php echo InstapageCmsPluginConnector::lang('Publish'); ?></button>
40 <button class="fx-ripple-effect c-button c-button--regular" data-bind="click: masterModel.toolbarModel.loadListPages"><span class="c-button__text"><?php echo InstapageCmsPluginConnector::lang('Back'); ?></span></button>
41 </div>
42 </form>
43