-
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.
Watches are now editable from the dashboard #101
- Loading branch information
1 parent
ebeec0f
commit ddf0d3b
Showing
9 changed files
with
233 additions
and
1 deletion.
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
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
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
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,5 @@ | ||
<li> | ||
<a href="#" class="submitEditWatch" data-watch="<?php echo $watchId; ?>">Edit watch</a> | ||
<form method="post" action="/measures/edit_watch_p" name="edit-watch-<?php echo $watchId; ?>" class="no-display"> | ||
<input type="hidden" name="watchId" value="<?php echo $watchId; ?>"></form> | ||
</li> |
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,48 @@ | ||
<div class="container container-fluid content first"> | ||
<div class="row"> | ||
<div class="col-md-12"><center><h1>Add a new watch</h1></center></div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 col-md-offset-3"> | ||
<form class="form-horizontal" action="/measures/edit_watch" method="post" name="editWatch"> | ||
<div class="form-group"> | ||
<label for="brand" class="col-sm-3 control-label">Brand<i>*</i></label> | ||
<div class="col-sm-9"> | ||
<input value="<?php echo $brand;?>" type="text" class="form-control" name="brand" placeholder="Jaeger-LeCoultre"> | ||
<span class="watch-error brand-error">This field is required.</span> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="name" class="col-sm-3 control-label">Model</label> | ||
<div class="col-sm-9"> | ||
<input value="<?php echo $name;?>" type="text" class="form-control" name="name" placeholder="Duometre"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="caliber" class="col-sm-3 control-label">Caliber</label> | ||
<div class="col-sm-9"> | ||
<input value="<?php echo $caliber;?>" type="text" class="form-control" name="caliber" placeholder="Calibre Jaeger-LeCoultre 381"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="yearOfBuy" class="col-sm-3 control-label">Year of buy</label> | ||
<div class="col-sm-9"> | ||
<input value="<?php echo $yearOfBuy;?>" type="text" class="form-control" name="yearOfBuy" placeholder="1998"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="serial" class="col-sm-3 control-label">Serial number</label> | ||
<div class="col-sm-9"> | ||
<input value="<?php echo $serial;?>" type="text" class="form-control" name="serial" placeholder="268/53"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-sm-offset-3 col-sm-9"> | ||
<input type="submit" class="btn btn-primary" name="addWatch" value="Edit the watch"> | ||
</div> | ||
</div> | ||
<input type="hidden" name="watchId" value="<?php echo $watchId; ?>"> | ||
</form> | ||
</div> | ||
</div> | ||
</div> |
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