Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Sep 10, 2014
1 parent e07d451 commit 3e0cf7c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
36 changes: 35 additions & 1 deletion resources/testweb/creator_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,42 @@ <h1 id="page_title"> </h1>
</div>
</div>

<!-- Stuff for the creator only -->
<div id="creator_edit_content" class="hide">
<h3> Youtube link &nbsp;&nbsp;&nbsp; </h3>
<small> The thumbnail of the video will be your main image. </small>

<form id="youtubeLinkForm" class="form-horizontal" role="form">
<div id="youtubeLinkDiv" class="form-group">
<label for="youtubeLink3" class="col-sm-2 control-label">Youtube link</label>
<div class="col-sm-10">
<input name="youtubelink" type="url" class="form-control" id="youtubeLink3"
placeholder="Your video link"
data-bv-message="The link is not valid"

data-bv-notempty="true"
data-bv-notempty-message="The link is required and cannot be empty"

data-bv-uri-message="The link address is not valid"
>
</div>
</div>


<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button id="youtubeLinkBtn" type="submit" class="btn btn-primary"
data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i>">Save</button>
</div>
</div>
</form>

</div>


<!-- Stuff for everyone -->

<h1 id="main_body_title" class="hide">Page body</h1>
<h2 id="main_body_title" class="hide">Page body</h2>
<div id="main_body" class="row">

<script id="main_body_template" type="x-tmpl-mustache">
Expand Down
10 changes: 9 additions & 1 deletion resources/testweb/creator_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ $(document).ready(function() {

}


$('#youtubeLinkForm').bootstrapValidator({
message: 'This value is not valid',
excluded: [':disabled'],
submitButtons: 'button[type="submit"]'

}).on('success.form.bv', function(event) {
event.preventDefault();
alert('mmmk');
});

fillSimpleText(creatorName + '/get_pieces_owned_value_current_by_creator', '#worth_current');
fillSimpleText(creatorName + '/get_funds_raised', '#funds_raised');
Expand Down

0 comments on commit 3e0cf7c

Please sign in to comment.