PluginProbe
HTML Forms – Simple WordPress Forms Plugin / 1.3.21
HTML Forms – Simple WordPress Forms Plugin v1.3.21
1.7.0 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.16 All 67 releases
← All changes | views/page-edit-form.php +13 -23 trunk1.3.21 View file →
@@ -2,18 +2,18 @@
2 2
3 3 $tabs = hf_get_admin_tabs($form);
4 4
5 5 ?>
6 -<script>document.title = 'Edit Form' + ' - ' + document.title;</script>
6 +<script>document.title = 'Edit form' + ' - ' + document.title;</script>
7 7 <div class="wrap hf">
8 8
9 9 <p class="breadcrumbs">
10 10 <span class="prefix"><?php echo __( 'You are here: ', 'html-forms' ); ?></span>
11 11 <a href="<?php echo admin_url( 'admin.php?page=html-forms' ); ?>">HTML Forms</a> &rsaquo;
12 - <span class="current-crumb"><strong><?php _e( 'Edit Form', 'html-forms' ); ?></strong></span>
12 + <span class="current-crumb"><strong><?php _e( 'Edit form', 'html-forms' ); ?></strong></span>
13 13 </p>
14 14
15 - <h1 class="page-title"><?php _e( 'Edit Form', 'html-forms' ); ?></h1>
15 + <h1 class="page-title"><?php _e( 'Edit form', 'html-forms' ); ?></h1>
16 16
17 17 <?php if ( ! empty( $_GET['saved'] ) ) {
18 18 echo '<div class="notice notice-success"><p>' . __( 'Form updated.', 'html-forms' ) . '</p></div>';
19 19 } ?>
@@ -25,31 +25,21 @@
25 25 <input type="submit" style="display: none; " />
26 26
27 27 <div id="titlediv">
28 28 <div id="titlewrap">
29 - <label for="title"><?php _e( 'Form Title', 'html-forms' ); ?></label>
29 + <label for="title"><?php _e( 'Form title', 'html-forms' ); ?></label>
30 30 <input type="text" name="form[title]" size="30" value="<?php echo esc_attr( $form->title ); ?>" id="title" spellcheck="true" autocomplete="off" placeholder="<?php echo __( "Enter the title of your form", 'html-forms' ); ?>" style="line-height: initial;" >
31 31 </div>
32 + <div class="inside" style="margin-top: 3px;">
33 + <div class="hf-tiny-margin hide-if-no-js">
34 + <strong>Slug:</strong> <input type="text" id="form-slug-input" name="form[slug]" value="<?php echo esc_attr( $form->slug ); ?>" readonly /> &lrm;<button type="button" class="button button-small" onclick="document.getElementById('form-slug-input').removeAttribute('readonly');" aria-label="<?php _e( 'Edit slug', 'html-forms' ); ?>"><?php _e( 'Edit', 'html-forms' ); ?></button>
35 + </div>
36 + <div class="hf-tiny-margin">
37 + <label for="shortcode"><?php _e( 'Copy this shortcode and paste it into your post, page, or text widget content:', 'html-forms' ); ?></label><br />
38 + <input id="shortcode" type="text" class="regular-text" value="<?php echo esc_attr( sprintf( '[hf_form slug="%s"]', $form->slug ) ); ?>" readonly onclick="this.select()">
39 + </div>
40 + </div>
32 41 </div>
33 -
34 - <table class="form-table">
35 -
36 - <tr valign="top" class="hide-if-no-js">
37 - <th scope="row" style="width:80px;"><?php _e( 'Slug', 'html-forms' ); ?></th>
38 - <td>
39 - <input type="text" class="regular-text" id="form-slug-input" name="form[slug]" value="<?php echo esc_attr( $form->slug ); ?>" readonly /> &lrm;<button type="button" class="button button-small" onclick="document.getElementById('form-slug-input').removeAttribute('readonly');" aria-label="<?php _e( 'Edit Slug', 'html-forms' ); ?>"><?php _e( 'Edit', 'html-forms' ); ?></button>
40 - </td>
41 - </tr>
42 -
43 - <tr valign="top">
44 - <th scope="row" style="width:80px;"><?php _e( 'Shortcode', 'html-forms' ); ?></th>
45 - <td>
46 - <input type="text" class="regular-text" id="shortcode" value="<?php echo esc_attr( sprintf( '[hf_form slug="%s"]', $form->slug ) ); ?>" readonly onclick="this.select()">
47 - <p class="description"><?php _e( 'Copy this shortcode and paste it into your post, page, or text widget content.', 'html-forms' ); ?></p>
48 - </td>
49 - </tr>
50 -
51 - </table>
52 42
53 43 <div class="hf-small-margin">
54 44 <h2 class="nav-tab-wrapper" id="hf-tabs-nav">
55 45 <?php foreach( $tabs as $tab => $name ) {