function a_sub_crud_form_tag($form)
{
    list($type, $subtype, $displayData) = _a_sub_crud_form_info($form);
    // Necessary when we're editing a relation (EventUser) rather than the thing itself (Event)
    if (method_exists($form, 'getCrudObject')) {
        $object = $form->getCrudObject();
    } else {
        $object = $form->getObject();
    }
    $url = sfContext::getInstance()->getRouting()->generate($type . '_update', array('sf_subject' => $object, 'form' => $subtype), true);
    $s = jq_form_remote_tag(array('url' => $url, 'update' => $displayData, 'complete' => "if (!\$('#{$type}-{$subtype} form').length) { \$('#{$type}-form-edit-{$subtype}').show(); }"));
    $s .= '<input type="hidden" name="sf_method" value="PUT" />';
    $s .= a_sub_crud_form_body($form);
    // Oops I left this out earlier
    $s .= "</form>\n";
    return $s;
}
Beispiel #2
0
<?php

/**
 * Создание профиля
 *
 * @param sfGuardUserForm $form
 */
?>

<h2>Создание профиля</h2>

<?php 
echo jq_form_remote_tag(array('url' => 'loginza_create', 'update' => 'content .content'), array('id' => 'profile-form'));
?>
    <?php 
echo $form->renderHiddenFields();
?>
    <?php 
echo $form->renderGlobalErrors();
?>

    <ul>
        <li class="form-item">
            <?php 
echo $form['username']->renderLabel('Ник *');
?>
            <?php 
echo $form['username']->renderError();
?>
            <?php 
echo $form['username'];
Beispiel #3
0
                            <li class="" style="display:list-item;" id="s3">
                            <a href="javascript:void(0)" class="fifth">Step 5</a>
                            </li>
                      </ul>
                       <?php 
$errors = $form3->getErrorSchema()->getErrors();
if (count($errors) > 0) {
    foreach ($errors as $name => $error) {
        echo $name . ':' . $error;
    }
}
?>
                      </div>
            <div class="passenger-form">
                        <?php 
echo jq_form_remote_tag(array('update' => 'passenger_form', 'url' => 'passenger/update3Ajax', 'method' => 'post', 'loading' => "jQuery('#loading-lightbox-overlay-image').center();Element.show('loading-lightbox-overlay');", 'complete' => "Element.hide('loading-lightbox-overlay');"), array('id' => 'form_passenger1', 'style' => 'display:block;'));
?>
 
                          <input type="hidden" name="back" value="<?php 
echo $back;
?>
" />
                                                <input type="hidden" name="referer" value="<?php 
echo $referer;
?>
" />
                                                <?php 
if (isset($f_back)) {
    ?>
<input type="hidden" name="f_back" value="<?php 
    echo $f_back;
Beispiel #4
0
</div>
		<div class="menu padding0"><?php 
echo submit_tag(__('Search'), array('title' => __('Search'), 'tabindex' => 1));
?>
		</div>
		<div class="menu padding0"><?php 
echo link_to(__('Show All'), $oAppCommon->ssLink, array('title' => __('Show All'), 'tabindex' => 1));
?>
		</form>
		</div>
		<div>
		</td>
	</tr>
</table>
		<?php 
echo jq_form_remote_tag(array('update' => $oAppCommon->ssDivId, 'url' => $oAppCommon->ssLink), array('name' => 'frmList', 'id' => 'frmList', 'method' => 'post', 'class' => 'fright'));
echo input_hidden_tag('ssSortOn', $oAppCommon->ssSortOn);
echo input_hidden_tag('ssSortBy', $oAppCommon->ssSortBy);
echo input_hidden_tag('ssSearchOption', $sf_params->get('ssSearchOption'));
echo input_hidden_tag('ssSearchWord', $sf_params->get('ssSearchWord'));
echo input_hidden_tag('page', $sf_params->get('page'));
include_partial($oAppCommon->ssRenderListFileName, array('oAppCommon' => $oAppCommon, 'snCount' => $snCount));
?>
<br />
<div class="menu"><?php 
if ($oAppCommon->ssShowDeleteButton && $snCount > 0) {
    echo button_to_function(__('Delete'), "if(deleteAll(document.frmList,'" . $oAppCommon->ssTitle . "','','" . __("Are you sure, you want to delete selected %sstitle%?", array('%sstitle%' => $oAppCommon->ssTitle)) . "','" . __("Select Atleast One Item") . "'))" . jq_remote_function(array('url' => $oAppCommon->ssLink . (strstr($oAppCommon->ssLink, '?') ? "&" : "?") . "ssAction=delete", 'update' => $oAppCommon->ssDivId, 'with' => 'jQuery(this.form.elements).serialize()')), array('id' => 'delete', 'name' => __("Delete"), 'title' => __('Delete')));
}
?>
</div>
<div class="menu"><?php 
Beispiel #5
0
<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
use_helper('Javascript', 'Form');
use_helper('jQuery', 'Form');
?>

<h3>Add New Requester</h3>

<div id="requester_form">
  <?php 
echo jq_form_remote_tag(array('update' => 'requester_form', 'url' => 'requester/updateAjax', 'method' => 'post'), array('id' => 'form_requester', 'style' => 'display:block;'));
?>
  <div class="passenger-form">
    <input type="hidden" id="req_id" name="req_id" value="<?php 
echo $requester->getId();
?>
"/>
    <?php 
foreach ($form->getGlobalErrors() as $name => $error) {
    ?>
    <li><?php 
    echo $name . ': ' . $error;
    ?>
</li>
    <?php 
}
?>
    <div class="box">
      <div class="wrap">
Beispiel #6
0
<div id="sf_admin_content" class="rounded" style="background:#EFEFEF; padding: 20px">
 <?php 
use_helper('jQuery', 'I18N');
?>

  <script type="text/javascript">
  //tinyMCE.execCommand('mceAddControl', false, 'pagina_content');
  teste = function(form){
    //return false;
    //tinyMCE.triggerSave(false,false);
    tinyMCE.execCommand('mceRemoveControl', false, 'pagina_content');
    return false;
  }
  </script>
 <?php 
echo jq_form_remote_tag(array('url' => 'cms/novaPagina', 'update' => 'theContent', 'before' => "teste(this)", 'loading' => "\$('#loading').fadeIn()", 'complete' => "\$('#loading').fadeOut()"));
?>
<ul>
    <?php 
echo $formContent->renderUsing('list');
?>
    <li>
      <input type="submit" value="Submit" />
    </li>
    
  </ul>
</form>
</div>
Beispiel #7
0
<?php

use_helper('jQuery');
$sf_response->addJavascript('/js/jquery-ui.min.js');
?>

<?php 
include_partial('role_permission/tab', array('tab' => 'role'));
?>
<div class="raw_frame">
  <span id="indicator" style="display:none;">Please wait ...</span>
  <span id="notification"></span>
  
  <?php 
echo jq_form_remote_tag(array('url' => 'role/save', 'before' => "\$('#notification').html('');", 'loading' => "\$('#indicator').show();", 'success' => "\$('#indicator').hide(); navigate(\$('#role_page').val()); if (data.substring(0, 2) == 'e1') { data=data.substring(2, data.length); } else resetForm(); \$('#notification').html(data).effect('highlight', '', 3000);", 'dataType' => "text"), array('id' => 'rr_form'));
?>
    <input type="hidden" name="id"/>
    <input type="text" name="title"/>
    <input type="submit" id="rr_form_submit" value="Add Role"/>
    <?php 
echo jq_button_to_function('New Role', "resetForm()", array('style' => 'display:none', 'id' => 'rr_form_new'));
?>
  </form>
  
  <div id="roles">
  <?php 
include_partial('role/list', array('role_list' => $role_list, 'max_array' => $max_array, 'max' => $max, 'pager' => $pager, 'page' => $page));
?>
  </div>
</div>
Beispiel #8
0
foreach ($reviews->getResults() as $review) {
    ?>
	<?php 
    include_component_slot('profileReview', array('review' => $review));
}
?>

<?php 
if ($reviews->haveToPaginate() && $reviews->getLastPage() > $reviews->getPage()) {
    ?>
	<div id="<?php 
    echo "more_reviews_" . $reviews->getPage();
    ?>
">
  		      <?php 
    echo jq_form_remote_tag(array('update' => "more_reviews_" . $reviews->getPage(), 'url' => "@profile_more_comments", 'before' => "\$('#frm_more_reviews" . $reviews->getPage() . "').hide();re_loading('more_reviews_" . $reviews->getPage() . "');"), array('id' => "frm_more_reviews" . $reviews->getPage()));
    ?>
        		  <div><input type="hidden" name="username" value="<?php 
    echo $user->getProfile()->getVanity();
    ?>
" /></div>
            	<div><input type="hidden" name="page" value="<?php 
    echo isset($page) ? $page : '1';
    ?>
" /></div>
            	<div><input type="submit" value="<?php 
    echo __('más');
    ?>
" /></div>
    			  </form>
	</div>
Beispiel #9
0
<?php

use_helper('jQuery');
?>

<?php 
echo jq_form_remote_tag(array('url' => 'myQuestion', 'update' => 'question-form'), array('class' => 'question-form'));
?>
    <ul class="form">
        <?php 
echo $form;
?>
        <li class="form-row">
            <input id="question-submit" type="submit" value="<?php 
echo __('Submit');
?>
" />
        </li>
    </ul>
</form>
Beispiel #10
0
 * @param PlaceForm $form
 */
?>

<?php 
if ($sf_params->get('action') != 'create') {
    ?>
    <?php 
    include_partial('global/movable.js');
}
?>

<h2>Отметить место</h2>

<?php 
echo jq_form_remote_tag(array('url' => 'place_create', 'update' => 'content .content'), array('id' => 'point-form'));
?>
    <ul>
        <?php 
include_partial('place/form', array('form' => $form));
?>

        <li class="form-item">
            <input type="submit" value="Сохранить" />

            <?php 
echo link_to_cancel();
?>
        </li>
    </ul>
</form>
Beispiel #11
0
<?php 
if (isset($place)) {
    ?>
    <h2 class="title icon-<?php 
    echo $place->getIcon();
    ?>
"><?php 
    echo link_to($place, 'place_show', $place, array('class' => 'ajax'));
    ?>
</h2>
<?php 
}
?>

<?php 
echo jq_form_remote_tag(array('url' => url_for('event_create', array('place' => $sf_params->get('place'))), 'update' => 'content .content'), array('id' => 'point-form'));
?>
    <ul>
        <?php 
include_partial('event/form', array('form' => $form));
?>

        <li class="form-item">
            <input type="submit" value="Сохранить" />

            <?php 
echo link_to_cancel();
?>
        </li>
    </ul>
</form>
        jQuery("#lightbox-overlay").click();
    </script>
<?php 
}
?>
<div class="holder">
        <div class="bg">
            <h2>Add New Companion</h2>
            <div class="passenger-form">
            <div class="person-view">
            <!-- form action="<?php 
//echo url_for('itinerary/updateAjaxCompanion?itId='.$itine->getId())
?>
" id="new_companion_form" method="post" -->
                <?php 
echo jq_form_remote_tag(array('update' => 'addcompanion-popup', 'url' => 'itinerary/updateAjaxCompanion?itId=' . $itId . '&time=' . urlencode(date('d-m-y-h-i-s')), 'loading' => "jQuery('#loading-lightbox-overlay-image').center();Element.show('loading-lightbox-overlay');", 'complete' => "Element.hide('loading-lightbox-overlay');", 'method' => 'post'), array('id' => 'form_passenger_companion', 'style' => 'display:block;'));
?>
              <?php 
echo $form_a->renderHiddenFields();
?>
              <?php 
echo $form_a->renderGlobalErrors();
?>
              <div class="box">
                <div class="wrap">
                        <?php 
echo $form_a['name']->renderLabel();
?>
                        <?php 
echo $form_a['name']->render();
?>
<?php

use_helper('jQuery');
echo jq_form_remote_tag(array('url' => 'employee/emailExpirationNotice', 'update' => 'send_result'));
?>
  <div id="send_result" style="text-align:right;padding: 10px 0;">
    <a href="" id="select_all" style="margin-right:30px">Select All</a>
    <input type="submit" value="Send Notices" />
  </div>
  <table width="100%" id="report_table">
    <thead>
     <tr>
       <th class="capt" colspan="<?php 
echo count($columns) + 1;
?>
">Expired Employees</th>
     </tr>
      <tr>
        <th style="text-align:left;padding-left:30px;">Employee</th>
        <?php 
foreach ($columns as $column) {
    ?>
          <th><?php 
    echo ReportExpirationForm::$choices[$column];
    ?>
</th>
        <?php 
}
?>
      </tr>
    </thead>
Beispiel #14
0
        </div>
        </div>
  </form>
  </div>
  
<input type="hidden" id="req_agency_id"/>
  
   <?php 
slot('popup');
?>
   <div class="add-passenger" id="addagency-popup" style="display:none; z-index: 1001; position: absolute; left: 400px; top: 145px; ">
     <div class="holder">
        <div class="bg">
          <div id="agency_form">              
            <?php 
echo jq_form_remote_tag(array('update' => 'agency_form', 'url' => 'agency/updateAjax?req=1&person_id=' . $person->getId() . "'", 'method' => 'post'), array('id' => 'form', 'style' => 'display:block;'));
?>
 
              <h3>Add New Agency</h3>
              <div class="passenger-form">
                <fieldset>
                  <div class="box">
                    <div class="wrap">
                      <?php 
echo $form_a['name']->renderLabel();
?>
                      <?php 
echo $form_a['name']->render();
?>
                      <?php 
echo $form_a['name']->renderError();
Beispiel #15
0
    ?>
</p>
<?php 
}
?>

	
<div id="<?php 
echo "more_" . ($t == 1 ? 'positives' : 'negatives') . "_" . ($t == 1 ? $pageU : $pageD);
?>
">
  <?php 
if ($pager->haveToPaginate() && $pager->getLastPage() > $pager->getPage()) {
    ?>
      <?php 
    echo jq_form_remote_tag(array('update' => "more_" . ($t == 1 ? 'positives' : 'negatives') . "_" . ($t == 1 ? $pageU : $pageD), 'url' => "@politico_more_comments"), array('id' => "frm_" . ($t == 1 ? 'positives' : 'negatives') . "_" . ($t == 1 ? $pageU : $pageD)));
    ?>
      <input type="hidden" id="t" name="t" value="<?php 
    echo $t;
    ?>
" />
      <input type="hidden" id="id" name="id" value="<?php 
    echo $politico->getId();
    ?>
" />
      <input type="hidden" id="<?php 
    echo $t == 1 ? 'pageU' : 'pageD';
    ?>
" name="<?php 
    echo $t == 1 ? 'pageU' : 'pageD';
    ?>
Beispiel #16
0
<div id='add-comment-form'>
  <h3>Add New Comment</h3>
  <?php 
use_helper('jQuery');
?>
  <?php 
echo jq_form_remote_tag(array('url' => '@cscomments_comments_do_add', 'update' => 'add-comment-form', 'enctype' => 'multipart/form-data', 'loading' => "\$('#comment-indicator').show();\$('#submit-comment-button').hide();", 'complete' => "\$('#comment-indicator').hide();\$('#submit-comment-button').show();"));
?>

    <input type='hidden' name='return_uri' value="<?php 
echo $sf_request->getParameter('return_uri');
?>
" />
    <input type='hidden' name='comment_id' value="<?php 
echo $sf_request->getParameter('comment_id');
?>
" />
    <input type='hidden' name='model' value="<?php 
echo $sf_request->getParameter('model');
?>
" />
    <input type='hidden' name='record_id' value="<?php 
echo $sf_request->getParameter('record_id');
?>
" />
  
  
    <?php 
if (isset($commentForm)) {
    ?>
      <?php 
<!--  END pilot-request-table-->
  <div class="pager">
    <div>
      <a class="btn-pager-prev" href="#">Previous</a>
      <span class="active-page">1</span>
      <strong>
      of
      <a href="#">12</a>
      </strong>
      <a class="btn-pager-next" href="#">Next</a>
    </div>
  </div>
</div>

  <?php 
echo jq_form_remote_tag(array('update' => 'result', 'url' => 'missionRequest/ajax', 'method' => 'post'), array('id' => 'form', 'style' => 'display:block;'));
?>
 
    <input type="hidden" value="" id="start_date" name="start_date"/>
    <input type="hidden" value="" id="end_date" name="end_date"/>
    <input type="submit" class="hide" id="form_submit"/>
</form>

<div id="result"">
</div>
<!--END PILOT REQ-->
<script type="text/javascript">
//<![CDATA[

<?php 
$dates = array();
Beispiel #18
0
				<?php 
        echo jq_link_to_remote('<span class="icon"></span>' . 'Remove', array('url' => url_for('taggable_remove_tag', array('object_id' => $object->id, 'object_class' => get_class($object), 'tags' => $tag)), 'complete' => '$(".assigned-tags").parent().html(XMLHttpRequest.responseText);'), array('class' => 'a-btn icon a-close-small no-label no-bg', 'title' => 'Remove "' . $tag . '"'));
        ?>
			</li>
			<?php 
    }
    ?>
		</ul>
	<?php 
}
?>
</div>

<div class="add-tags">
	<?php 
echo jq_form_remote_tag(array('url' => url_for('taggable_add_tag', array('object_id' => $object->id, 'object_class' => get_class($object))), 'complete' => '$(".assigned-tags").parent().html(XMLHttpRequest.responseText); $("#taggable-add-tag-form input.add-text").focus();'), array('id' => 'taggable-add-tag-form', 'class' => 'a-ui'));
?>
	<input class="add-text tag-input" name="tags" type="text" />
	<input type="submit" class="a-btn icon a-submit a-add" value="Add" />
	<div class="add-tags-help">
		You can add multiple tags at once separated with commas.
	</div>
	</form>
</div>

<?php 
if (count($popular_tags)) {
    ?>
	<div class="popular-tags">
	  <h5>Popular Tags</h5>
	  <ul class="a-ui">
Beispiel #19
0
<?php

use_helper('I18N', 'jQuery');
?>

<?php 
echo jq_form_remote_tag(array('url' => url_for('a_blog_admin_update', $a_blog_post), 'update' => 'a-admin-blog-post-form'), array('id' => 'a-admin-form', 'class' => 'blog'));
?>

<?php 
if (!$form->getObject()->isNew()) {
    ?>
<input type="hidden" name="sf_method" value="PUT" /><?php 
}
?>

<?php 
echo $form->renderHiddenFields();
?>


<?php 
// Title and Slug are hidden and handled with inputs in the editSuccess
?>
<div class="post-title post-slug option">
  <?php 
echo $form['title']->render();
?>
  <?php 
echo $form['slug']->render();
?>
Beispiel #20
0
<?php

use_helper('jQuery');
?>

<?php 
echo jq_form_remote_tag(array('url' => 'role_permission/save', 'loading' => "\$('#indicator').show();", 'before' => "sfDoubleList.submit(document.getElementById('rr_form'), 'double_list_select');", 'success' => "\$('#indicator').hide(); \$('#notification').html(data).effect('highlight', '', 3000);", 'dataType' => "text"), array('id' => 'rr_form'));
?>
  <input type="hidden" name="id" value="<?php 
echo $role->getId();
?>
"/>
  <?php 
echo $sf_data->getRaw('widget')->render('permissions', $sf_data->getRaw('assoc_perms'));
?>
  
  <a class="btn-action" href="#" onclick="$('#rr_form_submit').click(); return false;"><span>Save</span><strong> </strong></a>
  <input type="submit" id="rr_form_submit" class="hide"/>
</form>

Beispiel #21
0
?>
</span>
            <?php 
echo jq_link_to_remote($person->getEmailTextOnly() == 1 ? 'set to any' : 'set to text only', array('url' => 'account/toggle?name=email_text_only', 'success' => "jQuery('#email_text_only_toggle').html(data.substr(3)); jQuery('#email_text_only').html(data.substr(0, 3))"), array('id' => 'email_text_only_toggle'));
?>
          </dd>

          <dt>Email Address:</dt>
          <dd>
            <font color="red" id="email_error"></font>
            <span id="email"><?php 
echo $person->getEmail() ? $person->getEmail() : '';
?>
</span>
            <?php 
echo jq_form_remote_tag(array('url' => 'account/toggle?name=email', 'before' => "jQuery('#email_error').hide()", 'success' => "if (data[0] == '#') jQuery('#email_error').show().html(data.substr(1)); else { jQuery('#email').html(data); jQuery('#email, #email_change, #email_form').toggle(); }"), array('id' => 'email_form', 'style' => 'display:none;'));
?>
              <input size="28" type="text" name="email" id="email_edit"/>
              <a href="#" onclick="jQuery('#email_form_submit').click();return false;">save</a>
              <input type="submit" class="hide" id="email_form_submit"/>
            </form>
            <?php 
echo jq_link_to_function('change', "jQuery('#email_edit').val(jQuery('#email').html()); jQuery('#email_change').hide(); jQuery('#email_form').toggle(); jQuery('#email').toggle();", array('id' => 'email_change'));
?>
          </dd>
        </dl>
      </div>

      <?php 
if ($pilot instanceof Pilot) {
    $home_airport = $pilot->getAirport();
<?php

use_helper('I18N');
?>
<div class="a-chad"></div>

<?php 
use_helper('Url', 'jQuery');
?>

	<?php 
echo jq_form_remote_tag(array('update' => "a-personal-settings", "url" => "a/personalSettings", 'complete' => '$(".a-page-overlay").hide();', "script" => true), array("name" => "a-personal-settings-form", "id" => "a-personal-settings-form"));
?>

	<h3 id="a-personal-settings-heading"><?php 
echo __('User Preferences for %name%', array('%name%' => "<span>" . $sf_user->getGuardUser()->getUsername() . "</span>"), 'apostrophe');
?>
</h3>

	<?php 
// We need this to distinguish the original AJAX POST from an
?>
	<?php 
// actual form submit; we can't use a name attribute on the
?>
	<?php 
// submit tag because that doesn't work in jq_form_remote_tag
?>
  <input type="hidden" name="submit" value="1" />

	<?php 
)
        </li>
        <li class="actions">
          <?php 
    echo jq_link_to_remote(__('Delete', null, 'apostrophe'), array('url' => "aMedia/deleteCategory?" . http_build_query(array('slug' => $info['slug'])), 'update' => 'a-media-edit-categories'), array("class" => "a-btn icon no-label a-delete"));
    ?>
        </li>
      </ul>
    </li>
  <?php 
}
?>
</ul>

<?php 
echo jq_form_remote_tag(array('url' => 'aMedia/addCategory', 'update' => 'a-media-edit-categories', 'complete' => '$("#a_media_category_name").val("")'));
?>

<?php 
echo $form;
?>

<div class="a-form-row submit">
<input type="submit" name="add" value="<?php 
echo __('add', null, 'apostrophe');
?>
" class="a-submit icon a-add no-label" />
<?php 
echo jq_link_to_function(__('Cancel', null, 'apostrophe'), '$("#a-media-edit-categories-button, #a-media-no-categories-message, #a-category-sidebar-list").show(); $("#a-media-edit-categories").html("")', array('class' => 'a-btn icon no-label a-cancel'));
?>
</div>
Beispiel #24
0
}
?>
	  <?php 
if ($total > 0) {
    ?>
    
      <?php 
    if ($showCount < $total) {
        ?>
        <li class="subreviews-pagination">
      		<p><?php 
        echo __('Mostrando <strong>%1%</strong> comentarios de <strong>%2%</strong>', array('%1%' => $showCount < $total ? $showCount : $total, '%2%' => $total));
        ?>
</p>
          <?php 
        echo jq_form_remote_tag(array('update' => "sf_review_sr_c{$listValue}_" . $id, 'url' => '@sf_review_list'));
        ?>
          		<input type="hidden" name="id" value="<?php 
        echo $id;
        ?>
" />
          		<input type="hidden" name="showCount" value="<?php 
        echo $seeMoreCount;
        ?>
" />
		        <p class="more"><input type="submit" value="<?php 
        echo __('más');
        ?>
" /></p>
		      </form>
        	<?php 
      jQuery("#requester_agency_form textarea").val('');
      $inputs.each(function() {
           jQuery(this).val('');
      });
      jQuery("#lightbox-overlay_").click();
   </script>
<?php 
}
?>
<div class="person-view">   
    <h2><?php 
echo $agency_title;
?>
</h2>
    <?php 
echo jq_form_remote_tag(array('update' => 'add_new_agency_on_requester', 'url' => 'itinerary/ajaxAddNewRequesterAgency', 'method' => 'post', 'loading' => "jQuery('#loading-lightbox-overlay-image').center();Element.show('loading-lightbox-overlay');", 'complete' => "Element.hide('loading-lightbox-overlay');"), array('id' => 'requester_agency_form', 'style' => 'display:block;'));
?>
      <div class="box">
          <div class="wrap">
            <?php 
echo $agency_form['name']->renderLabel();
?>
            <?php 
echo $agency_form['name']->render();
?>
            <?php 
echo $agency_form['name']->renderError();
?>
            <?php 
echo $agency_form['_csrf_token'];
?>
Beispiel #26
0
<?php

/**
 * Редактирование места
 *
 * @param Place $place
 * @param PlaceForm $form
 */
?>

<h2>Редактирование места</h2>

<?php 
echo jq_form_remote_tag(array('url' => url_for('place_update', $place), 'update' => 'content .content'), array('id' => 'point-form'));
?>
    <ul>
        <?php 
include_partial('place/form', array('form' => $form));
?>

        <li class="form-item">
            <input type="submit" value="Сохранить" />

            <?php 
echo link_to_place($place, 'Отмена');
?>
        </li>
    </ul>
</form>
}
?>

		  <li><?php 
echo link_to(__("Cancel", null, 'apostrophe'), "aMedia/resumeWithPage", array("class" => "a-btn a-cancel"));
?>
</li>
		</ul>

	<h4 id="a-media-video-search-heading" class="a-media-video-heading"><?php 
echo __('Search YouTube', null, 'apostrophe');
?>
</h4>     

    <?php 
echo jq_form_remote_tag(array('url' => 'aMedia/videoSearch', 'update' => 'a-media-video-search-form', 'before' => '$("#a-media-video-search-form .a-search-field").append("<span class=\\"a-spinner\\"></span>");'), array('id' => 'a-media-video-search-form', 'class' => 'a-media-search-form'));
?>

    				
				<?php 
if (0) {
    # form tag has a height of 20px. this is messing up the height causing the footer to crash into the results.
    # Need to rework the input background or the markup to allow this stuff to work properly
}
?>
    	<?php 
include_partial('aMedia/videoSearch', array('form' => $videoSearchForm, 'results' => false));
?>
    </form>

 		<h4 id="a-media-video-add-by-url-heading" class="a-media-video-heading"><?php 
Beispiel #28
0
        ?>
      <li><?php 
        echo $error;
        ?>
</li>
      <?php 
    }
    ?>
    </ul>
  </div>
  <?php 
}
?>
  
  <?php 
echo jq_form_remote_tag(array('update' => 'password-form-contents', 'url' => '@password_recovery', 'loading' => "\$('#send').fadeOut();\$('#formContent .indicator').fadeIn();"), array('id' => 'password-form', 'class' => 'login-form', 'style' => 'display:none;'));
?>
    <a id="password-close" href="#"><?php 
echo image_tag('icons/delete', 'alt=' . __('close'));
?>
</a>
    
    <div id="password-form-contents">
      <p><?php 
echo __('Please type your username or email and we will send you an email with the activation link.');
?>
</p>
      <ul>
        <li>
          <label for="username_email"><?php 
echo __('Username or email');
Beispiel #29
0
<?php

use_stylesheets_for_form($form);
use_javascripts_for_form($form);
use_helper('Javascript', 'Form');
use_helper('jQuery', 'Form');
?>

          <h3>Add New Agency</h3>

        <div id="agency_form">
            <?php 
echo jq_form_remote_tag(array('update' => 'agency_form', 'url' => 'agency/updateAjax', 'method' => 'post'), array('id' => 'form', 'style' => 'display:block;'));
?>
 
              <div class="passenger-form">
                <fieldset>
                  <div class="box">
                    <div class="wrap">
                      <?php 
echo $form['name']->renderLabel();
?>
                      <?php 
echo $form['name']->render();
?>
                      <?php 
echo $form['name']->renderError();
?>
                      <?php 
echo $form['_csrf_token'];
?>
Beispiel #30
0
 * @param UserForm $form
 */
?>

<h2>Редактирование профиля</h2>

<?php 
if (isset($success) && $success) {
    ?>
<div class="flash success">Профиль успешно сохранен.</div>
<?php 
}
?>

<?php 
echo jq_form_remote_tag(array('url' => 'profile_update', 'update' => 'overlay .content'), array('id' => 'profile-form'));
?>
    <?php 
echo $form->renderHiddenFields();
?>
    <?php 
echo $form->renderGlobalErrors();
?>

    <ul>
        <li class="form-item">
            <?php 
echo $form['first_name']->renderLabel('Ваше имя:');
?>
            <?php 
echo $form['first_name']->renderError();