function page()
{
    global $db, $session;
    //lets get a user
    $user = $db->from('users')->where('id', 1);
    $formOptions = array('action' => $_SERVER['PHP_SELF'], 'id' => 'testForm', 'data' => $user, 'files' => true, 'class' => 'form-horizontal', 'sidebar' => true, 'title' => '', 'description' => '');
    $form = new Form($formOptions, $session);
    $sidebar = array('class' => 'warning', 'title' => 'Be careful!', 'body' => 'Be sure you complete all fields');
    $form->setSidebar($sidebar);
    $emailValidation = array('required' => 'true', 'error' => 'Please supply a valid email address');
    $email = array('field' => 'email', 'label' => "Email", 'description' => '', 'validation' => $emailValidation);
    $form->email($email);
    $firstNameValidation = array();
    $firstName = array('field' => 'firstname', 'label' => "First Name", 'description' => '', 'validation' => $firstNameValidation);
    $form->text($firstName);
    $lastName = array('field' => 'lastname', 'label' => "Last Name", 'description' => 'Fill in your last name');
    $form->text($lastName);
    $taName = array('field' => 'descriptionField', 'label' => "Last Name", 'description' => 'Fill in your last name');
    $form->textarea($taName);
    $phoneOptions = array('field' => 'phone', 'label' => "Phone", 'description' => 'Home Phone');
    $form->phone($phoneOptions);
    $checkOptions = array('field' => 'checkTest', 'label' => "Check here", 'description' => 'You authorize everything');
    $form->checkbox($checkOptions);
    $passwordValidation = array('pattern' => '(?=^.{6,}$)((?=.*\\d)|(?=.*\\W+))(?![.\\n])(?=.*[A-Z])(?=.*[a-z]).*$');
    $passwordOptions = array('field' => 'password', 'label' => "Password", 'description' => 'Enter a password at least 6 characters, with at least one symbol and number.', 'validation' => $passwordValidation);
    $form->password($passwordOptions);
    /*
        $dateValidation = array('disabledDays'=>'0,1','disabledDates'=>array("11/23/2015", "12/25/2015"), 'minDate'=>'11/1/2015', 'maxDate'=>'1/30/2016');
        $secondDateValidation = array('disabledDays'=>'0,1','disabledDates'=>array("11/23/2015", "12/25/2015"), 'minDate'=>'11/1/2015', 'maxDate'=>'1/30/2016');
        $dateOptions = array('field'=>'startdate', 'label'=>'Start/Stop Dates', 'description' =>'Enter a start  and stop date', 'validation' => $dateValidation,
            'second_field'=>'enddate',  'second_validation' => $secondDateValidation );
        $form->date($dateOptions);
    
        $timeValidation = array('stepping'=>5,'disabledDays'=>'0,1','disabledDates'=>array("11/23/2015", "12/25/2015"), 'minDate'=>'11/1/2015', 'maxDate'=>'1/30/2016');
        $secondTimeValidation = array('disabledDays'=>'0,1','disabledDates'=>array("11/23/2015", "12/25/2015"), 'minDate'=>'11/1/2015', 'maxDate'=>'1/30/2016');
        $dateOptions = array('field'=>'starttime', 'label'=>'Start/Stop Times', 'description' =>'Enter a start  and stop time', 'validation' => $timeValidation,
            'second_field'=>'endtime',  'second_validation' => $secondTimeValidation );
        $form->time($dateOptions);
    */
    $timeValidation = array('stepping' => 5, 'disabledDays' => '0,1', 'disabledDates' => array("11/23/2015", "12/25/2015"), 'minDate' => '11/1/2015', 'maxDate' => '1/30/2016');
    $secondTimeValidation = array('stepping' => 5, 'disabledDays' => '0,1', 'disabledDates' => array("11/23/2015", "12/25/2015"), 'minDate' => '11/1/2015', 'maxDate' => '1/30/2016');
    $dateOptions = array('field' => 'startdatetime', 'label' => 'Start/Stop Date Times', 'description' => 'Enter a start  and stop date time', 'validation' => $timeValidation, 'second_field' => 'enddatetime', 'second_validation' => $secondTimeValidation);
    $form->datetime($dateOptions);
    $options = array('field' => 'department', 'options' => array(0 => 'Advertising', 1 => "Circulation", 2 => 'Production'), 'label' => 'Department', 'description' => 'Select your department');
    $form->select($options);
    $options = array('field' => 'publications', 'url' => '/ajax/forms/publications.php', 'label' => 'Publication', 'description' => 'Select a publication');
    $form->remoteSelect($options);
    $form->generate();
    //var_dump($this->formScripts);
    //grab any form scripts and append them to the global scripts array
    $GLOBALS['scripts'] = array_merge($GLOBALS['scripts'], $form->formScripts);
}
Exemple #2
0
 private function parseFields()
 {
     if (!empty($this->fields)) {
         foreach ($this->fields as $key => $value) {
             switch ($value['type']) {
                 case 'text':
                     $obj = Form::text($key);
                     break;
                 case 'long_text':
                     $obj = Form::textarea($key);
                     break;
                 case 'multiple_choice':
                     $obj = Form::checkboxes($key . "[]");
                     // create a collection of checkboxeseaa
                     foreach ($value['options'] as $o => $v) {
                         $obj->add($o, $v);
                     }
                     break;
                 default:
                     $obj = Form::text($key);
             }
             $obj->setLabel($value['label']);
             $this->add($obj);
         }
     }
     $this->init();
 }
function do_private_post($content, $results)
{
    global $config, $speak;
    $results = Mecha::O($results);
    $results = $config->is->post ? Get::postHeader($results->path, POST . DS . $config->page_type, '/', $config->page_type . ':') : false;
    if ($results === false) {
        return $speak->plugin_private_post->description;
    }
    $s = isset($results->fields->pass) ? $results->fields->pass : "";
    if (strpos($s, ':') !== false) {
        $s = explode(':', $s, 2);
        if (isset($s[1])) {
            $speak->plugin_private_post->hint = ltrim($s[1]);
        }
        // override password hint
        $s = $s[0];
    }
    $hash = md5($s . PRIVATE_POST_SALT);
    $html = Notify::read(false) . '<div class="overlay--' . File::B(__DIR__) . '"></div><form class="form--' . File::B(__DIR__) . '" action="' . $config->url . '/' . File::B(__DIR__) . '/do:access" method="post">' . NL;
    $html .= TAB . Form::hidden('token', Guardian::token()) . NL;
    $html .= TAB . Form::hidden('_', $hash) . NL;
    $html .= TAB . Form::hidden('kick', $config->url_current) . NL;
    $html .= TAB . '<p>' . $speak->plugin_private_post->hint . '</p>' . NL;
    $html .= TAB . '<p>' . Form::text('access', "", $speak->password . '&hellip;', array('autocomplete' => 'off')) . ' ' . Form::button($speak->submit, null, 'submit') . '</p>' . NL;
    $html .= '</form>' . O_END;
    if ($results && isset($results->fields->pass) && trim($results->fields->pass) !== "") {
        if (!Guardian::happy() && Session::get('is_allow_post_access') !== $hash) {
            return $html;
        }
    }
    return $content;
}
Exemple #4
0
function input($name, $display = null)
{
    if ($display == null) {
        $display = str_replace('_', ' ', ucfirst($name));
        return Form::text($name, null, ['name' => "vinculacion[{$name}]"]) . $display . '<br>';
    }
}
function recurse_pages($pages, $spaces = 0, $layoutsBlocks = [], $pageWidgets = [], $pagesWidgets = [])
{
    $data = '';
    foreach ($pages as $page) {
        // Блок
        $currentBlock = array_get($pageWidgets, $page['id'] . '.0');
        $currentPosition = array_get($pageWidgets, $page['id'] . '.1');
        $data .= '<tr data-id="' . $page['id'] . '" data-parent-id="' . $page['parent_id'] . '">';
        $data .= '<td>';
        if (!empty($page['childs'])) {
            $data .= '<div class="input-group">';
        }
        $data .= Form::select('blocks[' . $page['id'] . '][block]', [], $currentBlock, ['class' => 'widget-blocks form-control', 'data-layout' => $page['layout_file'], 'data-value' => $currentBlock]);
        if (!empty($page['childs'])) {
            $data .= "<div class=\"input-group-btn\">" . Form::button(NULL, ['data-icon' => 'level-down', 'class' => 'set_to_inner_pages btn btn-warning', 'title' => trans('widgets::core.button.select_childs')]) . '</div></div>';
        }
        $data .= '</td><td>';
        $data .= Form::text('blocks[' . $page['id'] . '][position]', (int) $currentPosition, ['maxlength' => 4, 'size' => 4, 'class' => 'form-control text-right widget-position']);
        $data .= '</td><td></td>';
        if (acl_check('page::edit')) {
            $data .= '<th>' . str_repeat("-&nbsp;", $spaces) . link_to_route('backend.page.edit', $page['title'], [$page['id']]) . '</th>';
        } else {
            $data .= '<th>' . str_repeat("-&nbsp;", $spaces) . $page['title'] . '</th>';
        }
        $data .= '</tr>';
        if (!empty($page['childs'])) {
            $data .= recurse_pages($page['childs'], $spaces + 5, $layoutsBlocks, $pageWidgets, $pagesWidgets);
        }
    }
    return $data;
}
 public function get_formulario()
 {
     $variable = Form::open(['url' => '/usuarios/formulario', 'method' => 'post']);
     $variable .= Form::text('campo');
     $variable .= Form::submit('Enviar');
     $variable .= Form::close();
     return $variable;
 }
 /**
  * @dataProvider getFieldProvider
  *
  * @param $fieldName
  * @param $fieldTitle
  * @param $fieldValue
  * @param array  $options
  * @param string $helpText
  */
 public function testTextField($fieldName, $fieldTitle, $fieldValue = null, $options = [], $helpText = '')
 {
     Form::open(['url' => '/formurl']);
     $field = Form::textField($fieldTitle, $fieldName, $fieldValue, $options, $helpText);
     Form::close();
     $control = Form::text($fieldName, $fieldValue, $this->appendClassToOptions('form-control', $options));
     $this->assertEquals(Form::field($fieldTitle, $fieldName, $control, $helpText), $field);
 }
Exemple #8
0
function input($name, $display = null)
{
    if ($display == null) {
        $display = ucfirst($name);
    }
    $data = array('name' => "cliente[{$name}]");
    return Form::text($name, null, $data) . Form::label($name, $display) . '<br>';
}
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     echo Form::open(array('url' => 'l/ingreso', 'method' => 'post'));
     echo Form::text('username');
     echo Form::text('password');
     echo Form::submit('enviar');
     echo Form::close();
 }
Exemple #10
0
 public function get_login()
 {
     echo "Hello! Welcome to the login page!";
     echo Form::open('user/login', 'POST');
     echo Form::text('username');
     echo Form::submit('Click Me!');
     echo Form::close();
 }
Exemple #11
0
function inputGroup($name, $value = NULL, $errors)
{
    $errorClass = $errors->first($name) ? "has-error" : "";
    $output = "<div class='form-group {$errorClass}'>";
    $output .= Form::label($name, ucwords($name));
    $output .= Form::text($name, $value, ['class' => 'form-control', 'placeholder' => "Enter {$name}"]);
    $output .= $errors->first($name, '<label>:message</label>');
    return "{$output}</div>";
}
function page()
{
    global $db, $session;
    //did we get passed a userid?
    $permission = [];
    if ($_GET['id']) {
        //build up a user
        $permissionID = intval($_GET['id']);
        $permission = $db->from('core_permission_list')->where('id', $permissionID)->fetch();
    }
    $formOptions = array('action' => 'permission.php', 'data' => $permission, 'files' => true, 'title' => 'Permission Setup');
    $permissionForm = new Form($formOptions);
    $options = array('field' => 'displayname', 'label' => "Display name", 'description' => '');
    $permissionForm->text($options);
    $options = array('field' => 'js_varname', 'label' => "JS variable name", 'description' => '');
    $permissionForm->text($options);
    $options = array('field' => 'include_js', 'label' => "Include JS in head", 'description' => '');
    $permissionForm->checkbox($options);
    $permissionForm->generate();
}
    /**
     * test method
     */
    public function testSaveField()
    {
        global $tag;
        $creator = new WD_Creator_TaxonomyFieldsCreator('category');
        $_POST['iname'] = 'mvalue';
        $creator->add(Form::text('iname'))->init();
        do_action('edited_category', $tag->term_id = 1);
        $this->assertEquals($this->output('<tr class="form-field wd-taxonomy-fieldcreator">
								<th></th>
								<td><input type="text" name="iname" value="mvalue" /></td>
							</tr>'), $creator->renderForEdit());
    }
/**
 * @param array                    $params
 * @param Smarty_Internal_Template $smarty
 *
 * @throws SmartyException
 * @return string
 *
 * @author Kovács Vince
 */
function smarty_function_form_text($params, Smarty_Internal_Template &$smarty)
{
    if (!isset($params['_name'])) {
        throw new SmartyException('Missing _name attribute for form_text tag');
    }
    $name = $params['_name'];
    $value = isset($params['_value']) ? $params['_value'] : (isset($params['_populate']) ? \Input::get($name) : null);
    unset($params['_name']);
    unset($params['_value']);
    unset($params['_populate']);
    return Form::text($name, $value, $params);
}
 protected function request()
 {
     $f = new Form();
     $f->start($_POST);
     $f->radio('dest', 'Screen', 'screen');
     $f->hspace(2);
     $f->radio('dest', 'PDF', 'pdf', false);
     $f->hspace(2);
     $f->radio('dest', 'CSV', 'csv', false);
     $f->text('year', 'Year:', 30, 'YYYY');
     $f->button('action_report', 'Report', false);
     $f->end();
 }
Exemple #16
0
function textfield($name, $label, $errors, $default = null, $options = array())
{
    $defaultOptions = array('id' => 'field-' . $name);
    if (isset($options['class'])) {
        $options['class'] .= ' form-control';
    } else {
        $options['class'] = 'form-control';
    }
    $options = array_merge($defaultOptions, $options);
    $field = Form::text($name, $default, $options);
    $html = wrap_field($field, $name, text($label), $errors, $default);
    return $html;
}
function page()
{
    global $db, $session;
    //did we get passed an id?
    $group = [];
    if ($_GET['id']) {
        //build up a record
        $groupID = intval($_GET['id']);
        $group = $db->from('core_permission_groups')->where('id', $groupID)->fetch();
    }
    $formOptions = array('action' => 'permissionGroup.php', 'data' => $group, 'title' => 'Group Setup');
    $groupForm = new Form($formOptions);
    $options = array('field' => 'group_name', 'label' => "Group name", 'description' => '');
    $groupForm->text($options);
    $groupForm->generate();
}
Exemple #18
0
    public function index_prefix($searchTerm)
    {
        $structure = $this->structure;
        $create_url = action($structure['controller'] . '@create');
        $this->html = '
			<div class="row">
				<div class="col-md-12">
					<h2>' . $structure['title'] . '</h2>
				</div>
			</div>

			<div class="row">
				<div class="col-md-12">
					<div class="block-web col-md-12">';
        $this->html .= \Form::open(array('method' => 'get'));
        $this->html .= '<div class="row">';
        $this->html .= '<div class="col-sm-10">' . \Form::text('search', $searchTerm, array('required', 'class' => 'form-control parsley-validated', 'required', 'parsley-min' => '1', 'placeholder' => 'Search In Items')) . '</div>';
        $this->html .= '<div class="col-sm-2">' . \Form::submit('Search', array('class' => 'control-label btn btn-primary')) . '</div>';
        $this->html .= '</div>';
        $this->html .= \Form::close();
        $this->html .= '
					</div>
				</div>
			</div>

			<div class="row mitter">
				<div class="col-md-12">
					<div class="block-web">
					<div class="header">
						<h3 class="content-header">All ' . str_plural($structure['title']) . '</h3>
					</div>
						<div class="porlets-content">
							<div class="adv-table editable-table ">
								<div class="clearfix">
									<div class="btn-group">
										<a href="' . $create_url . '" class="btn btn-primary">
											Add New <i class="fa fa-plus"></i>
										</a>
									</div>
								</div>
								<div class="margin-top-10"></div>';
    }
    $attributes = ['data' => 'date-time-picker-input', 'data-date-format' => "YYYY-MM-DD HH:mm:ss"];
    $element = Form::text($name, $value, fieldAttributes($name, $attributes));
    $out = '<div class="form-group';
    $out .= fieldError($name) . '">';
    $out .= fieldLabel($name, $label);
    $out .= '<div class="input-group">';
    $out .= $element;
    $out .= '<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>';
    $out .= '</div>';
    $out .= fieldMsg($name);
    $out .= "</div>";
    return $out;
});
Form::macro('timeField', function ($name, $label = null, $value = null) {
    $attributes = ['class' => 'form-control timepicker'];
    $element = Form::text($name, $value, fieldAttributes($name, $attributes));
    $out = '<div class="bootstrap-timepicker"><div class="form-group';
    $out .= fieldError($name) . '">';
    $out .= fieldLabel($name, $label);
    $out .= '<div class="input-group">';
    $out .= $element;
    $out .= '<div class="input-group-addon"><i class="fa fa-clock-o"></i></div>';
    $out .= '</div>';
    $out .= fieldMsg($name);
    $out .= "</div></div>";
    return $out;
});
Form::macro('passwordField', function ($name, $label = null, $attributes = array()) {
    $element = Form::password($name, fieldAttributes($name, $attributes));
    return fieldWrapper($name, $label, $element);
});
Exemple #20
0
    return Form::text($attributeName, $value, $options);
});
Form::macro('decimal', function ($attributeName, $value, $options) {
    foreach (['js/plugins/input-mask/jquery.inputmask.js', 'js/plugins/input-mask/jquery.inputmask.numeric.extensions.js'] as $file) {
        $jsFilename = moduleAsset('admin', $file);
        if (!in_array($jsFilename, @Asset::$js['footer'] ?: array())) {
            Asset::add($jsFilename);
        }
    }
    $options['data-inputmask'] = "'alias': 'decimal', 'radixPoint': ','";
    $script = "\$('*[data-inputmask]').inputmask();";
    if (!in_array($script, @Asset::$scripts['footer'] ?: array())) {
        Asset::addScript($script);
    }
    $value = str_replace('.', ',', $value);
    return Form::text($attributeName, $value, $options);
});
/**
 * Creates a Html Editor
 */
Form::macro('editor', function ($attributeName, $value = null, $options = array()) {
    Asset::add(moduleAsset('system', 'js/ckeditor/ckeditor.js'));
    Asset::addScript("\n        CKEDITOR.config.allowedContent = true;\n        var editor = CKEDITOR.replace('{$attributeName}', {\n            filebrowserBrowseUrl : '" . URL::to(moduleAsset('system', 'ckfinder/ckfinder.html')) . "',\n            filebrowserImageBrowseUrl : '" . URL::to(moduleAsset('system', 'ckfinder/ckfinder.html?type=Images')) . "',\n            filebrowserFlashBrowseUrl : '" . URL::to(moduleAsset('system', 'ckfinder/ckfinder.html?type=Flash')) . "',\n            filebrowserUploadUrl : '" . URL::to(moduleAsset('system', 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files')) . "',\n            filebrowserImageUploadUrl : '" . URL::to(moduleAsset('system', 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images')) . "',\n            filebrowserFlashUploadUrl : '" . URL::to(moduleAsset('system', 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash')) . "'\n        });\n        CKFinder.setupCKEditor( editor, '../' );\n    ", 'ready');
    return Form::textArea($attributeName, $value, $options);
});
/**
 * Validates a Recaptcha input
 * Obs: Recapctha package already provide a "captcha" macro to form.
 */
Form::macro('makeCaptchaValidator', function ($input) {
    $v = Validator::make($input, ['g-recaptcha-response' => 'required|recaptcha'])->setAttributeNames(['g-recaptcha-response' => 'Recaptcha']);
</small>
	            	</div>

					<div class="form-group <?php 
if ($errors->first('harga')) {
    ?>
 has-error <?php 
}
?>
">
	            	    <?php 
echo Form::label('harga', 'Harga*');
?>

	            	    <?php 
echo Form::text('harga', null, ['class' => 'form-control', 'required' => 'required', 'data-parsley-id' => 7, 'parsley-trigegr' => 'change']);
?>

	            	    <small class="text-danger"><?php 
echo e($errors->first('harga'));
?>
</small>
	            	</div>

					<div class="form-group text-right m-b-0">
						<button class="btn btn-primary waves-effect waves-light" type="submit">
							Submit
						</button>
						<button type="reset" class="btn btn-default waves-effect waves-light m-l-5">
							Cancel
						</button>
Exemple #22
0
            </tr>
            <tr>
                <td width='150px;'>Email Address</td>
                <td class="<?php 
echo $errors->has('email') ? 'has-error' : '';
?>
"><?php 
echo Form::text('email', Input::old('email'), array('class' => "form-control mradi_forms email " . ($errors->has('email') ? 'has-error' : ''), 'id' => 'email'));
?>
</td>
            </tr>
                     
<!--            <tr>
                <td>Username</td>
                <td><?php 
echo Form::text('username', '', array('class' => 'form-control mradi_forms required', 'id' => 'username'));
?>
</td>
            </tr>-->
            <tr>
                <td>Country</td>
                <td class="<?php 
echo $errors->has('country') ? 'has-error' : '';
?>
">
                     <?php 
$rs = DB::select("SELECT ID,CODE FROM countries_dbx ");
$countries[''] = 'Select Country';
foreach ($rs as $cats) {
    $countries[$cats->CODE] = $cats->ID;
}
Exemple #23
0
					<?php 
echo Form::text('zip', '', array('id' => 'zip1', 'required', 'style' => 'width:500px', 'class' => 'text'));
?>
				</div>
				<div class="pure-control-group">
					<?php 
echo Form::label('documents_dir1', 'System Directory for Patient Documents:');
?>
					<?php 
echo Form::text('documents_dir', '', array('id' => 'documents_dir1', 'style' => 'width:500px', 'class' => 'text documents_dir', 'title' => 'Format: /directory/subdirectory/subdirectory/', 'readonly'));
?>
				</div>
				<div class="pure-control-group">
					<?php 
echo Form::label('smtp_user1', 'Gmail Username for Sending E-mail:');
?>
					<?php 
echo Form::text('smtp_user', '', array('id' => 'smtp_user1', 'required', 'style' => 'width:500px', 'class' => 'text'));
?>
				</div>
				<br>
				<button type='button' id='install_submit1'>Install NOSH ChartingSystem</button>
			</div>
		</form>
	</div>
	<div id="install_choose_dialog" title="Choose Installation Type">
		<button type='button' id='install_practice' title="Choose this method if you are a medical practice" style="width:310px">Install Practice Centric NOSH ChartingSystem</button><br><br>
		<button type='button' id='install_patient' title="Choose this method if you are a patient" style="width:310px">Install Patient Centric NOSH ChartingSystem</button>
	</div>
</div>
  <div class="grid span-2">
    <h4>Recently Updated</h4>
    <p>Nothing.</p>
  </div>
  <div class="grid span-2">
    <h4>Quick Draft</h4>
    <p><?php 
echo Form::text('title', "", $speak->manager->placeholder_title, array('class' => 'input-block'));
?>
</p>
    <div class="p"><?php 
echo Form::textarea('content', "", $speak->manager->placeholder_content, array('class' => array('textarea-block', 'code')));
?>
</div>
    <p><?php 
echo Jot::button('action', $speak->save);
?>
</p>
  </div>
  <div class="grid span-2">
    <h4>Quick Tags</h4>
    <p><?php 
echo Form::text('tags', "", null, array('class' => 'input-block'));
?>
</p>
    <p><?php 
echo Jot::button('action', $speak->add);
?>
</p>
  </div>
</div>
                        <?php 
echo Form::label('code', __('site.code'));
echo Form::text('code', $values['code'], array('class' => 'half', 'id' => 'code'));
?>
                    </div>
                    <div class="row1">
                        <div class="col1">
                        <?php 
echo Form::label('doc_number', __('site.doc_number'));
echo Form::text('doc_number', Input::get('doc_number'), array('id' => 'doc_number'));
?>
                        </div>
                        <div class="col2">
                        <?php 
echo Form::label('date', __('site.date'));
echo Form::text('date', Input::get('date'), array('id' => 'datepicker'));
?>
                        </div>
                    </div>
                </div>
                <div class="row1">
                        <?php 
echo Form::label('note', __('site.note'));
echo Form::textarea('note', Input::get('note'), array('class' => 'wide', 'rows' => 5));
?>
                    </div>
                <div class="row1 submit">
                    <?php 
echo Form::submit(__('site.check_out_item'), array('name' => 'submit', 'class' => 'btn btn-primary'));
?>
                </div>
Exemple #26
0
<label class="grid-group">
  <span class="grid span-1 form-label"><?php 
echo $speak->date;
?>
</span>
  <span class="grid span-5">
  <?php 
echo Form::text('date', Request::get('date', Guardian::wayback('date', $page->date->W3C)), date('c'), array('class' => 'input-block'));
?>
  </span>
</label>
Exemple #27
0
:</label>
                    <?php 
echo Form::text('name', Input::previous('name', $page->name), array('id' => 'label-name'));
?>
                    <em><?php 
echo __('pages.name_explain');
?>
</em>
                </p>
                <p>
                    <label for="label-slug"><?php 
echo __('pages.slug');
?>
:</label>
                    <?php 
echo Form::text('slug', Input::previous('slug', $page->slug), array('id' => 'label-slug'));
?>
                    <em><?php 
echo __('pages.slug_explain');
?>
</em>
                </p>
                <p>
                    <label for="label-status"><?php 
echo __('pages.status');
?>
:</label>
                    <?php 
echo Form::select('status', $statuses, Input::previous('status', $page->status), array('id' => 'label-status'));
?>
                    <em><?php 
Exemple #28
0
echo Form::text($inputName, $profile->first_name, array("id" => $inputName, "class" => "form-control", "placeholder" => "first name"));
?>
    <div class="form-error"><?php 
echo $profile->validationErrors->first("first_name");
?>
</div>
</div>
<div class="form-group">
    <?php 
$inputName = "Profile[last_name]";
?>
    <?php 
echo Form::label($inputName, "Last name");
?>
    <?php 
echo Form::text($inputName, $profile->last_name, array("id" => $inputName, "class" => "form-control", "placeholder" => "last name"));
?>
    <div class="form-error"><?php 
echo $profile->validationErrors->first("last_name");
?>
</div>
</div>

<div class="text-center">
    <p><button type="submit" class="btn btn-submit">Submit</button></p>
    <p><br/><?php 
echo HTML::link("user/login", "login");
?>
 </p>
</div>
					    <?php 
echo Form::text('ts_start', $event->ts_start, $attributes = array('class' => 'form-control'));
?>
					</div>

					<div class="form-group">
					    <label for="ts_end" class="control-label">End Time:</label>
					    <?php 
echo Form::text('ts_end', $event->ts_end, $attributes = array('class' => 'form-control'));
?>
					</div>

					<div class="form-group">
					    <label for="location" class="control-label">Location:</label>
					    <?php 
echo Form::text('location', $event->location, $attributes = array('class' => 'form-control'));
?>
					</div>

					{!! Form::hidden('event_id', $event_id, ['class' => 'form-control']) !!}

					{!! Form::submit('Create It!', ['class' => 'btn btn-primary']) !!}

					{!! Form::close() !!}						

            </div>
        </div>
    </div>
</div>

@stop
Exemple #30
0
<label class="grid-group">
  <span class="grid span-1 form-label"><?php 
echo $speak->key;
?>
</span>
  <span class="grid span-5">
  <?php 
echo Form::text('key', Request::get('key', Guardian::wayback('key', $page->key_raw)), null, array('class' => 'input-block'));
?>
  </span>
</label>