Exemplo n.º 1
0
    echo zbase_form_input_has_error('password') ? 'has-error' : '';
    ?>
">
			<label class="col-md-4 control-label">Password</label>

			<div class="col-md-6">
				<input type="password" class="form-control" name="password" required x-moz-errormessage="Please Enter Password">
			</div>
		</div>

		<div class="form-group">
			<div class="col-md-6 col-md-offset-4">
				<div class="checkbox">
					<label>
						<input type="checkbox" value="1" name="remember" <?php 
    echo zbase_form_old('remember') == 1 ? 'checked="checked"' : '';
    ?>
> Remember Me
					</label>
				</div>
			</div>
		</div>

		<div class="form-group">
			<div class="col-md-6 col-md-offset-4">
				<button type="submit" class="btn btn-primary">
					<i class="fa fa-btn fa-sign-in"></i>Login
				</button>
				<a class="btn btn-link" href="{{ zbase_url_from_route('password', [], true)}}">Forgot Your Password?</a>
			</div>
		</div>
Exemplo n.º 2
0
					<input type="text" class="form-control" id="tracking" value="" name="tracking" placeholder="The Tracking Number" />
					<span class="help-block">Date in format of <strong>mm/dd/yy</strong>. Example: <?php 
    echo date('m/d/Y');
    ?>
 (<?php 
    echo date('F d, Y');
    ?>
)</span>
				</div>
				<div class="form-group">
					<label for="date">Date Paid</label>
					<input type="date" required="required" class="form-control" min="2016-02-14" max="<?php 
    echo date('Y-m-d');
    ?>
" id="date" value="<?php 
    echo zbase_form_old('date', date('Y-m-d'));
    ?>
" name="date" placeholder="Date Paid" />
					<span class="help-block">Date in format of <strong>mm/dd/yy</strong>. Example: <?php 
    echo date('m/d/Y');
    ?>
 (<?php 
    echo date('F d, Y');
    ?>
)</span>
				</div>
				<div class="form-group">
					<label for="file">Upload copy of your deposit or payment slip</label>
					<input type="file" id="file" name="file" />
				</div>
				<div class="checkbox">
Exemplo n.º 3
0
 /**
  * Return the Value
  * @return integer|string
  */
 public function getValue()
 {
     if ($this->wasPosted()) {
         $this->_value = zbase_form_old($this->name());
     }
     if ($this->_value instanceof \Closure) {
         $func = $this->_value;
         return $func($this);
     }
     return $this->_value;
 }
Exemplo n.º 4
0
 /**
  * Return the Selected Rows
  * @return \Zbase\Entity\EntityInterface[]
  */
 public function selectedRows()
 {
     if (is_null($this->_selectedRows)) {
         $this->_selectedRows = [];
         if ($this->form() instanceof \Zbase\Widgets\Type\FormInterface) {
             if ($this->form()->wasPosted()) {
                 $this->_selectedRows = zbase_form_old('category');
             } else {
                 $entity = $this->form()->entity();
                 if ($entity instanceof \Zbase\Entity\Laravel\Node\Node) {
                     $this->_viewParams['node'] = $entity;
                     $this->_selectedRows = $entity->categories()->get();
                 }
                 if ($entity instanceof \Zbase\Entity\Laravel\Node\Category) {
                     $this->_viewParams['node'] = $entity;
                     $this->_selectedRows = $entity->parent()->get();
                 }
             }
         }
     }
     return $this->_selectedRows;
 }