142 lines
7.4 KiB
PHP
142 lines
7.4 KiB
PHP
<?php
|
|
/*
|
|
*
|
|
*/
|
|
?>
|
|
<div class="box">
|
|
<?php
|
|
echo $this->Form->create('DreamjobJobOpening',$default_Form);
|
|
?>
|
|
<fieldset>
|
|
<legend>
|
|
<?php
|
|
/*
|
|
<c:choose>
|
|
<c:when test="${empty opening.id}">
|
|
<spring:message code="dreamjob.opening"/>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:out value="${opening.title}"/>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
*/
|
|
echo $this->request->data['DreamjobJobOpening']['title'];
|
|
?>
|
|
</legend>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.title',array('label'=>__("dreamjob.title"))); ?>
|
|
<div class="form-group">
|
|
<spring:message code="" var="msg_dreamjob_title"/>
|
|
<form:label for="title" path="title" class="col-lg-3 control-label" cssErrorClass="has-error">${msg_dreamjob_title}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:input class="form-control" type="text" path="title" placeholder="${msg_dreamjob_title}"/>
|
|
<form:errors cssClass="has-error" path="title"/>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.startdate',array('label'=>__("dreamjob.opening.startdate"))); ?>
|
|
<div class="form-group">
|
|
<spring:message code="dreamjob.opening.startdate" var="msg_dreamjob_opening_startdate"/>
|
|
<form:label for="startdate" path="startdate" cssErrorClass="has-error" class="col-lg-3 control-label">${msg_dreamjob_opening_startdate}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:input class="form-control" type="text" path="startdate" placeholder="${msg_dreamjob_opening_startdate}"/>
|
|
<form:errors cssClass="has-error" path="startdate"/>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.enddate'); ?>
|
|
<div class="form-group">
|
|
<spring:message code="dreamjob.opening.enddate" var="msg_dreamjob_opening_enddate"/>
|
|
<form:label for="enddate" path="enddate" class="col-lg-3 control-label" cssErrorClass="has-error">${msg_dreamjob_opening_enddate}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:input class="form-control" type="text" path="enddate" placeholder="${msg_dreamjob_opening_enddate}"/>
|
|
<form:errors cssClass="has-error" path="enddate"/>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.kindofjob'); ?>
|
|
<div class="form-group">
|
|
<spring:message code="dreamjob.kindofjob" var="msg_dreamjob_kindofjob"/>
|
|
<form:label for="kindofjob" path="kindofjob" cssErrorClass="has-error" class="col-lg-3 control-label">${msg_dreamjob_kindofjob}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:select class="form-control" path="kindofjob">
|
|
<option value="-1">--- Select ---</option>
|
|
<form:options items="${kindofjobList}" itemLabel="name"/>
|
|
</form:select>
|
|
<form:errors cssClass="has-error" path="kindofjob"/>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.graducation'); ?>
|
|
<div class="form-group">
|
|
<spring:message code="dreamjob.graducation" var="msg_dreamjob_graducation"/>
|
|
<form:label for="graducation" path="graducation" cssErrorClass="has-error" class="col-lg-3 control-label">${msg_dreamjob_graducation}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:select class="form-control" path="graducation">
|
|
<option value="-1">--- Select ---</option>
|
|
<form:options items="${graducationList}" itemLabel="name"/>
|
|
</form:select>
|
|
<form:errors cssClass="has-error" path="graducation"/>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.branch'); ?>
|
|
<div class="form-group">
|
|
<spring:message code="dreamjob.branch" var="msg_dreamjob_branch"/>
|
|
<form:label for="branch" path="branch" cssErrorClass="has-error" class="col-lg-3 control-label">${msg_dreamjob_branch}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:select class="form-control" path="branch">
|
|
<option value="-1">--- Select ---</option>
|
|
<form:options items="${branchList}" itemLabel="name" itemValue="name"/>
|
|
</form:select>
|
|
<form:errors cssClass="has-error" path="branch"/>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.active'); ?>
|
|
<div class="form-group">
|
|
<div class="col-lg-offset-3 col-lg-9">
|
|
<div class="checkbox">
|
|
<form:label cssErrorClass="has-error" path="active">
|
|
<form:checkbox path="active"/>
|
|
<spring:message code="dreamjob.active"/>
|
|
</form:label>
|
|
</div>
|
|
<form:errors cssClass="has-error" path="active"/>
|
|
</div>
|
|
</div>
|
|
<legend><spring:message code="dreamjob.address"/></legend>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.street'); ?>
|
|
<div class="form-group">
|
|
<spring:message code="dreamjob.street" var="msg_dreamjob_street"/>
|
|
<form:label for="street" path="street" cssErrorClass="has-error" class="col-lg-3 control-label">${msg_dreamjob_street}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:input class="form-control" type="text" path="street" placeholder="${msg_dreamjob_street}"/>
|
|
<form:errors cssClass="has-error" path="street"/>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.postcode'); ?>
|
|
<div class="form-group">
|
|
<spring:message code="dreamjob.postcode" var="msg_dreamjob_postcode"/>
|
|
<form:label for="postcode" path="postcode" cssErrorClass="has-error" class="col-lg-3 control-label">${msg_dreamjob_postcode}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:input class="form-control" type="text" path="postcode" placeholder="${msg_dreamjob_postcode}"/>
|
|
<form:errors cssClass="has-error" path="postcode"/>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.city'); ?>
|
|
<div class="form-group">
|
|
<spring:message code="dreamjob.city" var="msg_dreamjob_city"/>
|
|
<form:label for="city" path="city" cssErrorClass="has-error" class="col-lg-3 control-label">${msg_dreamjob_city}</form:label>
|
|
<div class="col-lg-9">
|
|
<form:input class="form-control" type="text" path="city" placeholder="${msg_dreamjob_city}"/>
|
|
<form:errors cssClass="has-error" path="city"/>
|
|
</div>
|
|
</div>
|
|
<legend><spring:message code="dreamjob.text"/></legend>
|
|
<?php echo $this->Form->input('DreamjobJobOpening.text'); ?>
|
|
<div class="form-group">
|
|
<form:textarea class="form-control" path="text" placeholder="${msg_dreamjob_text}" rows="10"></form:textarea>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-lg-offset-3 col-lg-9">
|
|
<button type="submit" class="btn btn-default"><spring:message code='dreamjob.save'/></button>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
<?php echo $this->Form->end(); ?>
|
|
</div>
|