Plugin Directory

Changeset 1065359


Ignore:
Timestamp:
01/11/2015 07:35:40 PM (11 years ago)
Author:
think201
Message:

Added Ver 2.1
Added message for client side
Beautification of Admin side interface.

Location:
form-reader
Files:
45 added
13 edited

Legend:

Unmodified
Added
Removed
  • form-reader/trunk/assets/css/fr.css

    r1060788 r1065359  
    1 .tbox{margin:20px 0;overflow:auto;position:relative;background-color:#fff;border:1px solid #dddddd;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,0.05)}.tbox-heading{border-bottom:1px solid #dddddd;border-top-left-radius:3px;border-top-right-radius:3px;padding:12px 15px}.tbox-body{padding:15px}.tbox-footer{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #ddd;padding:8px 15px}.tbox h3{margin:0;display:inline-block}.pull-right{float:right}.ttable{display:table;width:100%;border-collapse:collapse}.thead{font-weight:bold;display:table-row;line-height:25px;font-size:14px}.trow{display:table-row;border-bottom:1px solid #fefefe}.tcol{display:table-cell;padding:5px}.trow:last-child{border-bottom:0px}.tbtn{padding:5px 10px;border-radius:4px;text-decoration:none}.tbtn-success{border:1px solid #5cb85c}.error-msg{color:#ff0000;font-style:italic;font-size:.85em}.valid{color:#4bb648;position:absolute;right:10px;top:43px;z-index:9;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;transition:all 1s ease}.notvalid{color:#ff0000;font-size:14px;position:absolute;right:10px;top:43px;z-index:9;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;transition:all 1s ease}.form-group{position:relative}.fr_success_msg{font-size:20px;padding-left:15px;color:#368000}.fr-msg{font-size:16px;display:none}.fr-fields-container{margin:10px 0}#fr-add-field{cursor:pointer;font-size:16px}.fr-fields-set input{margin:5px 0}.fr-inputs{position:relative}.fr-remove-field{cursor:pointer;position:absolute;right:10px;top:15px;color:#ff0010;font-size:18px;z-index:99}
     1.tbox{margin:20px 0;overflow:auto;position:relative;background-color:#fff;border:1px solid #dddddd;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,0.05)}.tbox-heading{border-bottom:1px solid #dddddd;border-top-left-radius:3px;border-top-right-radius:3px;padding:12px 15px}.tbox-body{padding:15px}.tbox-footer{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #ddd;padding:8px 15px}.tbox h3{margin:0;display:inline-block}.pull-right{float:right}.ttable{display:table;width:100%;border-collapse:collapse}.thead{font-weight:bold;display:table-row;line-height:25px;font-size:14px}.trow{display:table-row;border-bottom:1px solid #fefefe}.tcol{display:table-cell;padding:5px}.trow:last-child{border-bottom:0px}.tbtn{padding:5px 10px;border-radius:4px;text-decoration:none}.tbtn-success{border:1px solid #5cb85c}.error-msg{color:#ff0000;font-style:italic;font-size:.85em}.valid{color:#4bb648;position:absolute;right:10px;top:43px;z-index:9;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;transition:all 1s ease}.notvalid{color:#ff0000;font-size:14px;position:absolute;right:10px;top:43px;z-index:9;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;transition:all 1s ease}.form-group{position:relative}.fr_success_msg{font-size:20px;padding-left:15px;color:#368000}.fr-msg{font-size:16px;display:none}.fr-fields-container{margin:10px 0}#fr-add-field{cursor:pointer;float:right;font-size:25px;padding-top:3px}.fr-fields-set input{margin:5px 0}.fr-inputs{position:relative}.fr-remove-field{cursor:pointer;position:absolute;top:10px;color:#ff0010;font-size:18px;z-index:99}.fr_status{text-align:center}
    22/*# sourceMappingURL=fr.css.map */
  • form-reader/trunk/assets/css/fr.css.map

    r1060788 r1065359  
    11{
    22"version": 3,
    3 "mappings": "AAAC,KACA,CACG,MAAM,CAAE,MAAM,CACd,QAAQ,CAAE,IAAI,CACd,QAAQ,CAAE,QAAQ,CAClB,gBAAgB,CAAE,IAAI,CACtB,MAAM,CAAE,iBAAiB,CACzB,aAAa,CAAE,GAAG,CAClB,UAAU,CAAE,0BAA6B,CAG7C,aACA,CACI,aAAa,CAAE,iBAAiB,CAChC,sBAAsB,CAAE,GAAG,CAC3B,uBAAuB,CAAE,GA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,CAAE,QAAQ,CAGtB,gBACA,CACI,MAAM,CAAE,OAAO,CACf,QAAQ,CAAE,QAAQ,CAClB,GAAG,CAAE,IAAI,CACT,KAAK,CAAE,OAAO,CACd,SAAS,CAAE,IAAI,CACf,OAAO,CAAE,EAAE,CAGf,UACA,CACI,UAAU,CAAE,MAAM",
    44"sources": ["file:///D:/wamp_repo/www_s2/web/wp-content/plugins/form-reader/scss/_think201-wp.scss","../fr.scss"],
    55"names": [],
  • form-reader/trunk/assets/js/fr-user.js

    r1060788 r1065359  
    1 window.$=jQuery.noConflict();var FormReader={settings:{FormObj:null,FormId:null},add:function(a){this.settings.FormId=a,this.settings.FormObj=$(a),this._appendClass(),this._appendInput(),this._handleSubmit()},_appendClass:function(){this.settings.FormObj.addClass("fr-form")},_appendInput:function(){$("<input>").attr({type:"hidden",name:"action",value:"post_fr_form"}).appendTo(this.settings.FormId),$("<input>").attr({type:"hidden",name:"post_fr_value",value:"1"}).appendTo(this.settings.FormId)},_handleSubmit:function(){$(document).on("submit",this.settings.FormId,function(a){theFormObj=$(this),$.ajax({url:FRUserAjax.ajaxurl,type:"post",data:theFormObj.serialize(),success:function(a,b){console.log(a+" "+b)},error:function(){}}),a.preventDefault()})},_checkValidation:function(){}},FRForm={settings:{isValid:!1},init:function(){this.bindUIActions(),this.validator()},bindUIActions:function(){$(".fr-form").on("submit",function(){if($(this).validator("check","input[type!=submit], select, textarea"),0==FRForm.settings.isValid)return!1;var a=$(this);return $.ajax({url:FRUserAjax.ajaxurl,type:"post",data:a.serialize(),success:function(a){FRForm.settings.isValid=!1,console.log(a)},error:function(){FRForm.settings.isValid=!1}}),!1})},validator:function(){$(".fr-form").find("input").validator({events:"blur change"}),$(".fr-form").validator({events:"submit",selector:"input[type!=submit], select, textarea",formId:".fr-form",preventDefaultIfInvalid:!0,done:function(a){a&&(FRForm.settings.isValid=!0)}})}};$(function(){});
     1window.$=jQuery.noConflict();var FormReader={add:function(a,b){var c=new Array;c.FormId=a,c.FormObj=$(a),c.FormDBId=b,this._appendClass(c),this._appendInput(c),this._handleSubmit(c),this._handleInlineValidations(c)},_appendClass:function(a){a.FormObj.addClass("fr-form")},_appendInput:function(a){$("<input>").attr({type:"hidden",name:"action",value:"post_fr_form"}).appendTo(a.FormId),$("<input>").attr({type:"hidden",name:"post_fr_value",value:a.FormDBId}).appendTo(a.FormId)},_handleSubmit:function(a){$(document).on("submit",a.FormId,function(a){return a.preventDefault(),theFormObj=$(this),0==FormReader._checkValidation(theFormObj)?!1:void $.ajax({url:FRUserAjax.ajaxurl,type:"post",data:theFormObj.serialize(),success:function(a){FormReader._handleStatusMessage(theFormObj,a)},error:function(a){FormReader._handleStatusMessage(theFormObj,a)}})})},_checkValidation:function(a){return a.validator("checkform",a)},_handleInlineValidations:function(a){$(a.FormId+" input").validator({events:"blur change"})},_handleStatusMessage:function(a,b){a.find(".fr_status").remove();var c="#439e47";0==b.status&&(c="#ff0010");var d=$("<p class='fr_status'>"+b.msg+"</p>").attr("style","color: "+c);a.prepend(d)}};
  • form-reader/trunk/form-reader.php

    r1060795 r1065359  
    55Description: Form Reader (FR) helps you manage & save your form data.
    66Author: Think201
    7 Version: 2.0
     7Version: 2.1
    88Author URI: http://www.think201.com
    99License: GPL v1
    1010
    11 Mins To Read Plugin
     11Form Reader Plugin
    1212Copyright (C) 2015, Think201 - [email protected]
    1313
     
    5151
    5252if ( !defined( 'FR_VERSION' ) )
    53 define('FR_VERSION', '1.0' );
     53define('FR_VERSION', '2.1' );
    5454
    5555if ( !defined( 'FR_PLUGIN_DIR' ) )
  • form-reader/trunk/gulpfile.js

    r1060788 r1065359  
    3232    .pipe(uglify('fr-user.js'))
    3333    .pipe(gulp.dest('./assets/js'));
     34
     35    gulp.src('js/fr-admin.js')
     36    .pipe(uglify('fr-admin.js'))
     37    .pipe(gulp.dest('./assets/js'));   
    3438});
    3539
  • form-reader/trunk/includes/fr-admin.php

    r1061163 r1065359  
    7878            wp_enqueue_style( 'fr-css', plugins_url( 'form-reader/assets/css/fr.css' ), array(), FR_VERSION, 'all' );
    7979
    80             wp_enqueue_script( 'fr-ajax-request', plugins_url( 'form-reader/js/fr-user.js' ), array( 'jquery' ), false, true );
     80            wp_enqueue_script( 'fr-ajax-request', plugins_url( 'form-reader/assets/js/fr-user.js' ), array( 'jquery' ), false, true );
    8181            wp_localize_script( 'fr-ajax-request', 'FRUserAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );                 
    8282            wp_enqueue_script( 'fr-validator', plugins_url( 'form-reader/js/think201-validator.js' ), array( 'jquery' ), false, true );           
  • form-reader/trunk/includes/fr-mailer.php

    r1060877 r1065359  
    7575        if(!empty($FormConfig->options->mailtemplates))
    7676        {
    77             $Template = file_get_contents($FormConfig->options->mailtemplates);
     77            $Template = file_get_contents($FormConfig->options->mailtemplates);
    7878        }
    7979
  • form-reader/trunk/js/fr-admin.js

    r1060795 r1065359  
    5353
    5454        // Create a input field as required
    55         var input = '<div class="fr-inputs"><input type="text" class="fields" name="fields[name][]" placeholder="Enter Field"><span class="fr-remove-field">X</span></div>';
     55        var input = '<div class="fr-inputs"><input type="text" class="fields" name="fields[name][]" placeholder="Enter Field"><span class="fr-remove-field dashicons dashicons dashicons-no"></span></div>';
    5656
    5757        // Handle the input holder
  • form-reader/trunk/js/fr-user.js

    r1060788 r1065359  
    5959                success: function(data, status)
    6060                {
    61                     console.log(data.msg);
     61                    theFormObj[0].reset();
     62                    FormReader._handleStatusMessage(theFormObj, data);                   
    6263                },
    6364                error: function(data, status)
    6465                {
    65                    
     66                    FormReader._handleStatusMessage(theFormObj, data);
    6667                }
    6768            });           
     
    7879    {
    7980        $(Config['FormId']+' input').validator({events   : 'blur change'});
     81    },
     82
     83    _handleStatusMessage: function(FormObj, Data)
     84    {
     85        FormObj.find('.fr_status').remove();
     86        var fr_color = '#439e47';   
     87
     88        if(Data.status == false)
     89        {
     90            fr_color = '#ff0010';
     91        }
     92       
     93        var fr_msg = $("<p class='fr_status'>"+Data.msg+"</p>").attr("style", "color: "+fr_color);
     94        FormObj.prepend(fr_msg);
    8095    }
    8196};
  • form-reader/trunk/pages/admin-add-form.php

    r1060788 r1065359  
    1818        <div class="tbox-body">
    1919            <form name="fr_add_form" id="fr_add_form" action="#" method="post">             
    20                 <section>
    2120                    <input type="hidden" name="action" value="page_add_form">
    22                     <div class="twp-row">
    23                         <div class="twp-col-lg-12 twp-col-md-12 twp-col-sm-12 twp-col-xs-12">
    24                             <div class="fr-fields-container"> 
     21                <table class="form-table">
     22                    <tr valign="top">
     23                        <th scope="row">
    2524                                <label for="name">Name:</label>
     25                        </td>
     26                        <td>
    2627                                <input type="text" id="name" name="name" placeholder="Enter Name">
    27                             </div>
    28                             <div class="fr-fields-container"> 
     28                        </td>
     29                    </tr>
     30                    <tr valign="top">
     31                        <th scope="row">
    2932                                <label for="emailto">Email To:</label>
     33                        </td>
     34                        <td>
    3035                                <input type="text" id="emailto" name="emailto" placeholder="Enter Email Address Whom to Send" value="<?php echo get_option('admin_email'); ?>">
    31                             </div>
    32                             <div class="fr-fields-container"> 
     36                        </td>
     37                    </tr>                   
     38                    <tr valign="top">
     39                        <th scope="row">
    3340                                <label for="additionalemails">Additional Emails:</label>
     41                        </td>
     42                        <td>
    3443                                <input type="text" id="additionalemails" name="additionalemails" placeholder="Enter Additional Emails" value="">
    35                             </div>                         
    36                             <div class="fr-fields-container"> 
    37                                 <label for="fields">Fields:</label>
    38                                 <span id="fr-add-field">Add More</span>
     44                        </td>
     45                    </tr>                   
     46                    <tr valign="top">
     47                        <th scope="row">
     48                            <label for="fields">Input form fields:</label>
     49                            <span id="fr-add-field" class="dashicons dashicons dashicons-plus"></span>
     50                        </td>
     51                        <td>
    3952                                <div class="fr-fields-set">
    4053                                    <div class="fr-inputs">
     
    4255                                    </div> 
    4356                                </div>                         
    44                             </div>
    45                             <div class="fr-fields-container"> 
     57                        </td>
     58                    </tr>                   
     59                    <tr valign="top">
     60                        <th scope="row">
    4661                                <label for="domid">Form Id ( ex #myform):</label>
     62                        </td>
     63                        <td>
    4764                                <input type="text" id="domid" name="domid" placeholder="Enter Form Id #contact-form" value="">                         
    48                             </div>
    49                             <hr>
    50                             <div class="fr-fields-container"> 
     65                        </td>
     66                    </tr>                   
     67                    <tr valign="top">
     68                        <th scope="row">
     69                                <label for="validation">Is Validation Required?</label>
     70                        </td>
     71                        <td>
    5172                                <input type="hidden" value="0" class="validation" name="validation">
    5273                                <input type="checkbox" value="1" class="validation" name="validation">
    53                                 <label for="validation">Is Validation Required?</label>                             
    54                             </div>
    55                             <div class="fr-fields-container">                             
     74                                Check to add validations for the form.                                                             
     75                        </td>
     76                    </tr>
     77                    <tr valign="top">
     78                        <th scope="row">
     79                                <label for="dbsave">Save into Database?</label>
     80                        </td>
     81                        <td>
    5682                                <input type="hidden" value="0" class="dbsave" name="dbsave">
    57                                 <input type="checkbox" value="1" class="dbsave" name="dbsave">
    58                                 <label for="dbsave">Save into Database?</label>
    59                             </div>
    60                             <div class="fr-fields-container"> 
     83                                <input type="checkbox" value="1" class="dbsave" name="dbsave"> 
     84                                Check to add form responses to Database                         
     85                        </td>
     86                    </tr>
     87                    <tr valign="top">
     88                        <th scope="row">
     89                                <label for="sendmail">Send Email to User?</label>
     90                        </td>
     91                        <td>
    6192                                <input type="hidden" value="0" class="sendmail" name="sendmail">
    6293                                <input type="checkbox" value="1" class="sendmail" name="sendmail">
    63                                 <label for="sendmail">Send Email to User?</label>                               
    64                             </div>
    65                             <div class="fr-fields-container">                   
     94                                Check if you want to send mail to user as well.                                                             
     95                        </td>
     96                    </tr>
     97                    <tr valign="top">
     98                        <th scope="row">
    6699                                <label for="emailsubject">User Mail Subject:</label>           
     100                        </td>
     101                        <td>
    67102                                <input type="text" id="emailsubject" name="emailsubject">
    68                             </div>
    69                             <div class="fr-fields-container">                   
     103                        </td>
     104                    </tr>   
     105                    <tr valign="top">
     106                        <th scope="row">
    70107                                <label for="formsuccessmessage">Form Success Message:</label>           
     108                        </td>
     109                        <td>
    71110                                <input type="text" id="formsuccessmessage" name="formsuccessmessage">
    72                             </div>
    73                             <div class="fr-fields-container">                   
     111                        </td>
     112                    </tr>   
     113                    <tr valign="top">
     114                        <th scope="row">
    74115                                <label for="formfailmessage">Form Failed Message:</label>           
     116                        </td>
     117                        <td>
    75118                                <input type="text" id="formfailmessage" name="formfailmessage">
    76                             </div>
    77                             <div class="fr-fields-container">                   
     119                        </td>
     120                    </tr>   
     121                    <tr valign="top">
     122                        <th scope="row">
    78123                                <label for="usermail">User Mail Id Field Name:</label>           
     124                        </td>
     125                        <td>
    79126                                <input type="text" id="usermail" name="usermail">
    80                             </div>                         
    81                             <div class="fr-fields-container"> 
     127                        </td>
     128                    </tr>
     129                    <tr valign="top">
     130                        <th scope="row">
    82131                                <label for="mailtemplates">Email Template File:</label>
     132                        </td>
     133                        <td>
    83134                                <input type="text" id="mailtemplates" name="mailtemplates" placeholder="Email Templates">                               
    84135                                <input id="upload_mailtemplate" class="button" type="button" value="Upload EMail Template File" />
    85                             </div>
    86                         </div>                     
    87                     </div>
    88                 </section>
    89                 <div class="tclear"></div>
     136                        </td>
     137                    </tr>                   
     138                </table>
     139                <p class="submit">     
    90140                <button onClick="FRForm.post('#fr_add_form')" class="button button-primary" type="button">Add Form</button>
     141                </p>
    91142            </form>
    92143
  • form-reader/trunk/pages/admin-update-form.php

    r1060795 r1065359  
    4343        <div class="tbox-body">
    4444            <form name="fr_edit_form" id="fr_edit_form" action="#" method="post">               
    45                 <section>
    4645                    <input type="hidden" name="action" value="page_edit_form">
    4746                    <input type="hidden" name="update_id" value="<?php echo $update_id; ?>">
    48                     <div class="twp-row">
    49                         <div class="twp-col-lg-12 twp-col-md-12 twp-col-sm-12 twp-col-xs-12">
    50                             <div class="fr-fields-container"> 
     47               
     48                <table class="form-table">
     49                    <tr valign="top">
     50                        <th scope="row">
    5151                                <label for="name">Name:</label>
     52                        </td>
     53                        <td>
    5254                                <input type="text" id="name" name="name" placeholder="Enter Name" value="<?php echo $Data->name; ?>">
    53                             </div>
    54                             <div class="fr-fields-container"> 
     55                        </td>
     56                    </tr>
     57                    <tr valign="top">
     58                        <th scope="row">
    5559                                <label for="emailto">Email To:</label>
     60                        </td>
     61                        <td>
    5662                                <input type="text" id="emailto" name="emailto" placeholder="Enter Email Address Whome to Send" value="<?php echo $Data->emailto; ?>">
    57                             </div>
    58                             <div class="fr-fields-container"> 
     63                        </td>
     64                    </tr>                   
     65                    <tr valign="top">
     66                        <th scope="row">
    5967                                <label for="additionalemails">Additional Emails:</label>
    60                                 <input type="text" id="additionalemails" name="additionalemails" placeholder="Enter Additional Emails" value="<?php echo implode(',', json_decode($Data->additionalemails)); ?>">
    61                             </div>
    62                            
    63                             <div class="fr-fields-container"> 
    64                                 <label for="fields">Fields:</label>
    65                                 <span id="fr-add-field">Add More</span>
     68                        </td>
     69                        <td>
     70                            <input type="text" id="additionalemails" name="additionalemails" placeholder="Enter Additional Emails" value="<?php echo implode(',', $Data->additionalemails); ?>">
     71                        </td>
     72                    </tr>                   
     73                    <tr valign="top">
     74                        <th scope="row">
     75                            <label for="fields">Input Fields:</label>
     76                            <span id="fr-add-field" class="dashicons dashicons dashicons-plus"></span>
     77                        </td>
     78                        <td>
    6679                                <div class="fr-fields-set">
    6780                                    <?php
     
    7184                                        <div class="fr-inputs">
    7285                                            <input type="text" class="fields" name="fields[name][]" value="<?php echo $Item->name; ?>" placeholder="Enter Field">
    73                                             <span class="fr-remove-field">X</span>
     86                                        <span class="fr-remove-field dashicons dashicons dashicons-no"></span>
    7487                                        </div>
    7588                                    <?php
     
    7790                                    ?> 
    7891                                </div>                         
    79                             </div>
    80 
    81                             <div class="fr-fields-container"> 
     92                        </td>
     93                    </tr>                   
     94                    <tr valign="top">
     95                        <th scope="row">
    8296                                <label for="domid">Form Id ( ex #myform):</label>
     97                        </td>
     98                        <td>
    8399                                <input type="text" id="domid" name="domid" placeholder="Enter Form Id #contact-form" value="<?php echo $Data->domid; ?>">
    84                             </div> 
    85                             <div class="fr-fields-container"> 
     100                        </td>
     101                    </tr>                   
     102                    <tr valign="top">
     103                        <th scope="row">
    86104                                <input type="hidden" value="0" class="validation" name="validation">
    87105                                <input type="checkbox" value="<?php echo $Data->options->validation; ?>" class="validation" name="validation" <?php fr\frGetCheckBox($Data->options->validation); ?>>
     106                        </td>
     107                        <td>
    88108                                <label for="validation">Is Validation Required?</label>                             
    89                             </div>                                                 
    90                             <div class="fr-fields-container">                               
     109                        </td>
     110                    </tr>
     111                    <tr valign="top">
     112                        <th scope="row">
    91113                                <input type="hidden" value="0" class="dbsave" name="dbsave">
    92114                                <input type="checkbox" value="<?php echo $Data->options->dbsave; ?>" class="dbsave" name="dbsave" <?php fr\frGetCheckBox($Data->options->dbsave); ?>>
     115                        </td>
     116                        <td>
    93117                                <label for="dbsave">Save into Database?</label>
    94                             </div>
    95                             <div class="fr-fields-container"> 
     118                        </td>
     119                    </tr>
     120                    <tr valign="top">
     121                        <th scope="row">
    96122                                <input type="hidden" value="0" class="sendmail" name="sendmail">
    97123                                <input type="checkbox" value="<?php echo $Data->options->sendmail; ?>" class="sendmail" name="sendmail" <?php fr\frGetCheckBox($Data->options->sendmail); ?>>
     124                        </td>
     125                        <td>
    98126                                <label for="sendmail">Send Email to User?</label>                               
    99                             </div>
    100                             <div class="fr-fields-container"> 
     127                        </td>
     128                    </tr>
     129                    <tr valign="top">
     130                        <th scope="row">
    101131                                <label for="emailsubject">User Mail Subject:</label>           
     132                        </td>
     133                        <td>
    102134                                <input type="text" id="emailsubject" name="emailsubject" value="<?php echo $Data->options->emailsubject; ?>">
    103                             </div>
    104                             <div class="fr-fields-container">                   
     135                        </td>
     136                    </tr>   
     137                    <tr valign="top">
     138                        <th scope="row">
    105139                                <label for="formsuccessmessage">Form Success Message:</label>           
     140                        </td>
     141                        <td>
    106142                                <input type="text" id="formsuccessmessage" name="formsuccessmessage" value="<?php echo $Data->options->formsuccessmessage; ?>">
    107                             </div>
    108                             <div class="fr-fields-container">                   
     143                        </td>
     144                    </tr>   
     145                    <tr valign="top">
     146                        <th scope="row">
    109147                                <label for="formfailmessage">Form Failed Message:</label>           
     148                        </td>
     149                        <td>
    110150                                <input type="text" id="formfailmessage" name="formfailmessage" value="<?php echo $Data->options->formfailmessage; ?>">
    111                             </div>
    112                             <div class="fr-fields-container">                   
     151                        </td>
     152                    </tr>   
     153                    <tr valign="top">
     154                        <th scope="row">
    113155                                <label for="usermail">User Mail Id Field Name:</label>           
     156                        </td>
     157                        <td>
    114158                                <input type="text" id="usermail" name="usermail" value="<?php echo $Data->usermail; ?>">
    115                             </div>                         
    116                             <div class="fr-fields-container"> 
     159                        </td>
     160                    </tr>
     161                    <tr valign="top">
     162                        <th scope="row">
    117163                                <label for="mailtemplates">Email Template File:</label>
     164                        </td>
     165                        <td>
    118166                                <input type="text" id="mailtemplates" name="mailtemplates" placeholder="Email Templates" value="<?php echo $Data->options->mailtemplates; ?>">                         
    119167                                <input id="upload_mailtemplate" class="button" type="button" value="Upload EMail Template File" />
    120                             </div>
    121                         </div>                     
    122                     </div>
    123                 </section>
    124                 <div class="tclear"></div>
     168                        </td>
     169                    </tr>                   
     170                </table>
     171                <p class="submit">     
    125172                <button onClick="FRForm.post('#fr_edit_form')" class="button button-primary" type="button">Update Form</button>
     173                </p>
    126174            </form>
    127175
  • form-reader/trunk/readme.txt

    r1060788 r1065359  
    55Donate link: http://www.think201.com/
    66Tested up to: 4.1
    7 Stable tag: 2.0
    8 Version: 2.0
     7Stable tag: 2.1
     8Version: 2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 Form Reader lets developers use powerful, customizable UI blocks that persist data and send mails without writing any code.
     12FormReader leaves you free from writing backend code for validation, form data storing to DB, sending mail and much more. Read about the features to know in what ways it can help you
    1313
    1414== Description ==
    1515
    16 Form Reader lets developers use powerful, customizable UI blocks that persist data and send mails without writing any code.
     16FormReader leaves you free from writing backend code for validation, form data storing to DB, sending mail and much more. Read about the features to know in what ways it can help you
    1717
    1818
     
    8686- More configuration options
    8787- Client side Javascript Validation Added
     88
     89= 2.1 =
     90- Admin backend UI Modification
     91- Client side form submission success message
  • form-reader/trunk/scss/fr.scss

    r1060788 r1065359  
    2828{
    2929    cursor: pointer;
    30     font-size: 16px;
     30    float: right;
     31    font-size: 25px;
     32    padding-top: 3px;
    3133}
    3234
     
    4547    cursor: pointer;
    4648    position: absolute;
    47     right: 10px;
    48     top: 15px;
     49    top: 10px;
    4950    color: #ff0010;
    5051    font-size: 18px;
    5152    z-index: 99;
    5253}
     54
     55.fr_status
     56{
     57    text-align: center;
     58}
Note: See TracChangeset for help on using the changeset viewer.