?> </ul> </figcaption> <?php echo Form::open(Route::get('gallery_image')->uri(array('gallery_id' => Route::model_id($gallery), 'id' => $image->id, 'action' => 'note')), array('id' => 'form-note')); ?> <fieldset> <ul> <?php echo Form::input_wrap('name'); ?> </ul> <?php echo Form::submit_wrap('save', __('Save'), null, '#cancel', null, array('x' => null, 'y' => null, 'width' => null, 'height' => null, 'user_id' => null)); ?> </fieldset> <?php echo Form::close(); ?> <?php } // Notes ?> </figure> <?php echo HTML::script_source('
defined('SYSPATH') or die('No direct access allowed.'); /** * Tag group edit * * @package Anqh * @author Antti Qvickström * @copyright (c) 2011 Antti Qvickström * @license http://www.opensource.org/licenses/mit-license.php MIT license */ echo Form::open(); ?> <fieldset> <ul> <?php echo Form::input_wrap('name', $group, array('maxlength' => 32), __('Name'), $errors); ?> <?php echo Form::input_wrap('description', $group, null, __('Description'), $errors); ?> </ul> </fieldset> <fieldset> <?php echo Form::submit_wrap('save', __('Save'), null, Request::back(Route::get('tags')->uri(), true)); ?> </fieldset> <?php echo Form::close();
<?php if ($model) { echo $model->input($name, 'form/anqh', $field + array('errors' => Arr::get($form, 'errors'))); } ?> <?php } ?> </ul> </fieldset> <?php } ?> <fieldset> <?php echo Form::csrf(Arr::path($form, 'csrf.id'), Arr::path($form, 'csrf.action')); ?> <?php if (!isset($form['save']) || $form['save'] !== false) { echo Form::submit_wrap('save', Arr::path($form, 'save.label', __('Save')), Arr::path($form, 'save.attributes'), Arr::get($form, 'cancel'), $cancel_attributes, Arr::get($form, 'hidden')); } ?> </fieldset> <?php echo Form::close();
<fieldset> <ul> <?php echo Form::file_wrap($field_name, array('id' => $field_id, 'multiple' => 'multiple'), null, null, __('Allowed image types: :types, maximum image size: :size', array(':types' => implode(', ', Kohana::config('image.filetypes')), ':size' => Kohana::config('image.filesize')))); ?> </ul> </fieldset> <fieldset> <?php echo Form::csrf(); ?> <?php echo Form::submit_wrap('save', __('Upload'), null, Arr::get($form, 'cancel'), null, Arr::get($form, 'hidden')); ?> </fieldset> <?php echo Form::close(); ?> <div id="progress-report"> <ul id="progress-files"></ul> <span id="progress-report-status"></span> <span id="progress-report-name"></span> <div id="progress-report-bar-container" style="width: 90%; height: 5px;"> <div id="progress-report-bar" style="background-color: blue; width: 0; height: 100%;"></div> </div> </div>
echo Form::input_wrap('stamp_begin[date]', is_numeric($flyer->stamp_begin) ? Date::format('DMYYYY', $flyer->stamp_begin) : $flyer->stamp_begin, array('class' => 'date', 'maxlength' => 10), __('Date'), Arr::get($errors, 'stamp_begin')); ?> <?php echo Form::select_wrap('stamp_begin[time]', Date::hours_minutes(30, true), is_numeric($flyer->stamp_begin) ? Date::format('HHMM', $flyer->stamp_begin) : (empty($flyer->stamp_begin) ? '22:00' : $flyer->stamp_begin), array('class' => 'time'), __('At'), Arr::get($errors, 'stamp_begin')); ?> </ul> </fieldset> </div> <div class="grid1"> <fieldset class="grid1"> <?php echo Form::csrf(); ?> <?php echo Form::submit_wrap('save', __('Save')); ?> </fieldset> </div> <?php echo Form::close(); $options = array('changeMonth' => true, 'changeYear' => true, 'dateFormat' => 'd.m.yy', 'dayNames' => array(__('Sunday'), __('Monday'), __('Tuesday'), __('Wednesday'), __('Thursday'), __('Friday'), __('Saturday')), 'dayNamesMin' => array(__('Su'), __('Mo'), __('Tu'), __('We'), __('Th'), __('Fr'), __('Sa')), 'firstDay' => 1, 'monthNames' => array(__('January'), __('February'), __('March'), __('April'), __('May'), __('June'), __('July'), __('August'), __('September'), __('October'), __('November'), __('December')), 'monthNamesShort' => array(__('Jan'), __('Feb'), __('Mar'), __('Apr'), __('May'), __('Jun'), __('Jul'), __('Aug'), __('Sep'), __('Oct'), __('Nov'), __('Dec')), 'nextText' => __('»'), 'prevText' => __('«'), 'showWeek' => true, 'showOtherMonths' => true, 'weekHeader' => __('Wk')); // Event search date range if ($flyer->stamp_begin) { $year = Arr::get(getdate($flyer->stamp_begin), 'year'); $event_options = array('filter' => 'date:' . mktime(0, 0, 0, 1, 1, $year) . '-' . mktime(0, 0, 0, 1, 1, $year + 1)); } else { $event_options = null; } echo HTML::script_source('
<?php if ($pending) { echo '<li class="unit size1of1">' . Form::radios_wrap('all', $approve ? array('approve' => __('Approve'), 'deny' => __('Deny'), 'wait' => __('Wait')) : array('deny' => __('Delete'), 'wait' => __('Wait')), null, null, __('All images'), null, null, 'horizontal'); } ?> </ul> <?php if ($pending) { echo Form::csrf(); if ($approve) { echo HTML::icon_value(array(':images' => 0), __('Approved'), null, 'approve') . ' '; } echo HTML::icon_value(array(':images' => 0), $approve ? __('Denied') : __('Deleted'), null, 'deny') . ' '; echo HTML::icon_value(array(':images' => count($images)), __('Waiting'), null, 'wait') . '<br />'; echo Form::submit_wrap('approve', __('Save'), null, Route::get('galleries')->uri(array('action' => 'approval'))); echo Form::close(); echo HTML::script_source(' head.ready("jquery", function() { $("form input[name=all]").change(function() { $("form input[value=" + $(this).val() + "]").attr("checked", true); $.each([ "approve", "deny", "wait" ], function() { $("var.icon." + this).text($("input[name!=all][value=" + this + "]:checked").length); }); }); $("form input[name^=image_id]").change(function() { $(this).closest("li") .toggleClass("approved", $(this).val() == "approve" && $(this).attr("checked"))
<fieldset> <?php echo Form::hidden('city_id', (int) $user->geo_city_id); ?> <?php echo Form::hidden('latitude', $user->latitude); ?> <?php echo Form::hidden('longitude', $user->longitude); ?> <?php echo Form::csrf(); ?> <?php echo Form::submit_wrap('save', __('Save'), null, URL::user($user)); ?> </fieldset> <?php echo Form::close(); // Date picker $options = array('changeMonth' => true, 'changeYear' => true, 'dateFormat' => 'd.m.yy', 'defaultDate' => date('j.n.Y', $user->dob), 'dayNames' => array(__('Sunday'), __('Monday'), __('Tuesday'), __('Wednesday'), __('Thursday'), __('Friday'), __('Saturday')), 'dayNamesMin' => array(__('Su'), __('Mo'), __('Tu'), __('We'), __('Th'), __('Fr'), __('Sa')), 'firstDay' => 1, 'monthNames' => array(__('January'), __('February'), __('March'), __('April'), __('May'), __('June'), __('July'), __('August'), __('September'), __('October'), __('November'), __('December')), 'monthNamesShort' => array(__('Jan'), __('Feb'), __('Mar'), __('Apr'), __('May'), __('Jun'), __('Jul'), __('Aug'), __('Sep'), __('Oct'), __('Nov'), __('Dec')), 'nextText' => __('»'), 'prevText' => __('«'), 'showWeek' => true, 'showOtherMonths' => true, 'weekHeader' => __('Wk'), 'yearRange' => '1900:+0'); echo HTML::script_source(' // Date picker head.ready("jquery-ui", function() { $("#field-dob").datepicker(' . json_encode($options) . '); }); // Maps
* @package Events * @author Antti Qvickström * @copyright (c) 2011 Antti Qvickström * @license http://www.opensource.org/licenses/mit-license.php MIT license */ $attributes = array('enctype' => 'multipart/form-data'); if ($ajaxify) { // $attributes['class'] = 'ajaxify'; $cancel_attributes = array('class' => 'ajaxify'); } else { $cancel_attributes = null; } echo Form::open(null, $attributes); ?> <fieldset> <ul> <?php echo Form::file_wrap('file', null, __('Image'), $errors); ?> </ul> </fieldset> <fieldset> <?php echo Form::submit_wrap('save', __('Upload'), null, $cancel, $cancel_attributes); ?> </fieldset> <?php echo Form::close();
if ($post) { ?> <fieldset id="fields-post"> <ul> <?php echo Form::textarea_wrap('post', $post, array('tabindex' => ++$tabindex), true, __('Post'), $errors); ?> </ul> </fieldset> <?php } ?> <fieldset> <?php echo Form::csrf(); ?> <?php echo Form::submit_wrap('save', __('Save'), array('tabindex' => ++$tabindex), $cancel); ?> </fieldset> <?php echo Form::close(); if ($private) { echo HTML::script_source(' head.ready("anqh", function() { $("textarea[name=recipients]").autocompleteUser({ user: '******', maxUsers: 100 }); }); '); }
?> <fieldset> <legend><?php echo __('Almost there!'); ?> </legend> <ul> <?php echo Form::input_wrap('username', $user, array('placeholder' => __('JohnDoe')), __('Username'), $errors, __('Choose a unique username with at least <var>:length</var> characters. No special characters, thank you.', array(':length' => Kohana::$config->load('visitor.username.length_min')))); ?> <?php echo Form::password_wrap('password', null, null, __('Password'), $errors); ?> <?php echo Form::password_wrap('password_confirm', null, null, __('Confirm'), $errors, __('Try to use letters, numbers and special characters for a stronger password, with at least <var>8</var> characters.')); ?> <?php echo Form::input_wrap('email', $user, array('disabled' => 'disabled', 'placeholder' => __('*****@*****.**')), __('Email'), $errors, __('Please remember: sign up is available only with a valid, invited email.')); ?> </ul> </fieldset> <fieldset> <?php echo Form::submit_wrap('register', __('Sign up!'), null, Request::back('/', true), null, array('code' => $code)); ?> </fieldset> <?php echo Form::close();
* @package Forum * @author Antti Qvickström * @copyright (c) 2011 Antti Qvickström * @license http://www.opensource.org/licenses/mit-license.php MIT license */ // Create form attributes $attributes = array(); isset($form_id) and $attributes['id'] = $form_id; //isset($ajax) and $attributes['class'] = 'ajaxify'; echo Form::open(isset($action) ? $action : null, $attributes); ?> <fieldset> <ul> <?php echo Form::textarea_wrap('post', $post, null, true, null, $errors, null, true); ?> </ul> </fieldset> <fieldset> <?php echo Form::csrf(); ?> <?php echo Form::submit_wrap('save', __('Save'), null, $cancel); ?> </fieldset> <?php echo Form::close();
* * @package Blog * @author Antti Qvickström * @copyright (c) 2011 Antti Qvickström * @license http://www.opensource.org/licenses/mit-license.php MIT license */ echo Form::open(); ?> <fieldset> <ul> <?php echo Form::input_wrap('name', $entry, array('tabindex' => 1), __('Title'), $errors); ?> <?php echo Form::textarea_wrap('content', $entry, array('tabindex' => 2), true, __('Content'), $errors, null, true); ?> </ul> </fieldset> <fieldset> <?php echo Form::csrf(); ?> <?php echo Form::submit_wrap('save', __('Save'), array('tabindex' => 3), $cancel, array('tabindex' => 4)); ?> </fieldset> <?php echo Form::close();
/** * Enter invitation code * * @package Anqh * @author Antti Qvickström * @copyright (c) 2011 Antti Qvickström * @license http://www.opensource.org/licenses/mit-license.php MIT license */ echo Form::open(); ?> <fieldset> <legend><?php echo __('Got my invitation!'); ?> </legend> <ul> <?php echo Form::input_wrap('code', null, array('placeholder' => __('M0573XC3LL3N751R')), __('Enter your invitation code'), $errors, __('Your invitation code is included in the mail you received, 16 characters.')); ?> </ul> </fieldset> <fieldset> <?php echo Form::submit_wrap('invited', __('Final step!'), null, Request::back('/', true), null, array('signup' => true)); ?> </fieldset> <?php echo Form::close();