-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<form class="form-horizontal" action="/client/edit" method="POST"> | ||
<?php if (array_key_exists('client_id', $client)):?> | ||
<input type="hidden" name="client_id" id="client_id" value="<?php echo $client['client_id'];?>" /> | ||
<legend>Edit Client</legend> | ||
<?php else: ?> | ||
<legend>Add Client</legend> | ||
<?php endif;?> | ||
<fieldset> | ||
<div class="control-group"> | ||
<label class="control-label" for="client_name">Name</label> | ||
<div class="controls"> | ||
<input type="text" class="input-xlarge" id="client_name" name="client_name" value="<?php echo $client['client_name'];?>" /> | ||
<p class="help-block">Client Name</p> | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
<?php if (array_key_exists('client_id', $client)):?> | ||
<img class="client_log" src="<?php echo $client['client_log'];?>"/> | ||
<input type="hidden" name="client_log" value="<?php echo $client['client_log'];?>" /> | ||
<?php endif;?> | ||
<label class="control-label" for="fileInput">Client Logo</label> | ||
<div class="controls"> | ||
<input class="input-file" id="fileInput" type="file"> | ||
<p class="help-block">If not modify then left blank.</p> | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label" for="content">Content</label> | ||
<div class="controls"> | ||
<textarea rows="10" cols="50" class="input-xxlarge" name="content" id="content"><?php echo $client['content'];?></textarea> | ||
</div> | ||
</div> | ||
<div class="form-actions"> | ||
<button type="submit" class="btn btn-primary">Save changes</button> | ||
<button class="btn">Cancel</button> | ||
</div> | ||
</fieldset> | ||
</form> |