-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some code should still be cleaned up, but this is an effor to wrap up things for an Alpha release.
- Loading branch information
Showing
13 changed files
with
465 additions
and
126 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
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 |
---|---|---|
@@ -1,78 +1,90 @@ | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<h4 class="modal-title" id="addShotModalLabel">Add Shot</h4> | ||
<form id="addShot" role="form" action="{{ url_for('shots_add') }}" method=post> | ||
<!-- <div class="row"> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label for="project">Show</label> | ||
<select name="active_show" class="form-control"> | ||
{% for show in shows %} | ||
<option value="{{show}}"{% if show == settings['active_show'] %}selected{% endif %}>{{shows[show]['name']}}</option> | ||
{% endfor %} | ||
<option value="">Single blendfile</option> | ||
</select> | ||
</div> | ||
</div> | ||
<div class="modal-body"> | ||
|
||
<form id="addShot" role="form" action="{{ url_for('shots_add') }}" method=post> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label for="project">Project</label> | ||
<select name="project" class="form-control"> | ||
{% for file in render_settings['settings_files'] %} | ||
<option value="{{file}}">{{file}}</option> | ||
{% endfor %} | ||
<option value="">File Settings</option> | ||
</select> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label for="filepath">Filepath</label> | ||
<input type="text" class="form-control" id="filepath" name="filepath" placeholder="/tmp/untitled.blend" required=""> | ||
</div> | ||
</div> | ||
</div> --> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="form-group"> | ||
<label for="project">Shot</label> | ||
<div class="input-group"> | ||
<input id="filepath" name="filepath" type="text" class="form-control"> | ||
<div class="input-group-btn"> | ||
<a id="browse_filepath" type="button" class="btn btn-default">Browse</a> | ||
</div><!-- /btn-group --> | ||
</div><!-- /input-group --> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label for="shot_name">Shot name</label> | ||
<input type="text" class="form-control" id="shot_name" name="shot_name" placeholder="a2s31" required=""> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label for="shot_name">Shot name</label> | ||
<input type="text" class="form-control" id="shot_name" name="shot_name" placeholder="a2s31" required=""> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label for="render_settings">Render settings</label> | ||
<select name="render_settings" class="form-control"> | ||
{% for file in render_settings['settings_files'] %} | ||
<option value="{{file}}">{{file}}</option> | ||
{% endfor %} | ||
<option value="">File Settings</option> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label for="render_settings">Render settings</label> | ||
<select name="render_settings" class="form-control"> | ||
{% for file in render_settings['settings_files'] %} | ||
<option value="{{file}}">{{file}}</option> | ||
{% endfor %} | ||
<option value="">File Settings</option> | ||
</select> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-4"> | ||
<div class="form-group"> | ||
<label for="frame_start">Frame start</label> | ||
<input type="text" class="form-control" id="frame_start" name="frame_start" value="1" required=""> | ||
</div> | ||
</div> | ||
<div class="col-md-4"> | ||
<div class="form-group"> | ||
<label for="frame_end">Frame end</label> | ||
<input type="text" class="form-control" id="frame_end" name="frame_end" value="20" required=""> | ||
</div> | ||
</div> | ||
<div class="col-md-4"> | ||
<div class="form-group"> | ||
<label for="chunk_size">Chunk size</label> | ||
<input type="text" class="form-control" id="chunk_size" name="chunk_size" value="5" required=""> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-4"> | ||
<div class="form-group"> | ||
<label for="frame_start">Frame start</label> | ||
<input type="text" class="form-control" id="frame_start" name="frame_start" value="1" required=""> | ||
</div> | ||
</div> | ||
<div class="col-md-4"> | ||
<div class="form-group"> | ||
<label for="frame_end">Frame end</label> | ||
<input type="text" class="form-control" id="frame_end" name="frame_end" value="20" required=""> | ||
</div> | ||
|
||
</form> | ||
|
||
|
||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | ||
<button type="button" class="btn btn-primary" onclick="$('.modal-body > form').submit();" >Submit shot</button> | ||
<div class="col-md-4"> | ||
<div class="form-group"> | ||
<label for="chunk_size">Chunk size</label> | ||
<input type="text" class="form-control" id="chunk_size" name="chunk_size" value="5" required=""> | ||
</div> | ||
</div> | ||
</div><!-- /.modal-content --> | ||
</div><!-- /.modal-dialog --> | ||
</div> | ||
</form> | ||
|
||
<script> | ||
$(document).ready(function() { | ||
|
||
$('#brenderModalLabel').text('Add shot'); | ||
|
||
$('#filepath').val($('#modal_variable').val()); | ||
|
||
$('#browse_filepath').click(function(e) { | ||
e.preventDefault(); | ||
$.get('/shots/browse/', function(data) { | ||
$('.modal-body').html(data); | ||
}); | ||
|
||
$('.modal-footer').children('.btn-primary').text('Select'); | ||
$('.modal-footer').children('.btn-primary').addClass('select-file'); | ||
}); | ||
|
||
}); | ||
|
||
</script> | ||
|
||
|
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,44 @@ | ||
<ul class="files"> | ||
<li><a class="folder" href="{{parent_folder}}">..</a></li> | ||
{% for item in items_list %} | ||
<li><a class="{{item[2]}}" href="{{item[1]}}">{{item[0]}}</a></li> | ||
{% endfor %} | ||
</ul> | ||
|
||
|
||
<script> | ||
$(document).ready(function() { | ||
|
||
$('#brenderModalLabel').text('Select a blendfile'); | ||
|
||
// Support for AJAX loaded modal window. | ||
// Focuses on first input textbox after it loads the window. | ||
$('.folder').click(function(e) { | ||
e.preventDefault(); | ||
var url = '/shots/browse/' + $(this).attr('href'); | ||
$.get(url, function(data) { | ||
$('.modal-body').html(data); | ||
}); | ||
}); | ||
|
||
$('.blendfile').click(function(e) { | ||
e.preventDefault(); | ||
var url = '/shots/browse/' + $(this).attr('href'); | ||
$(this).parent().siblings().children('a').removeClass('active'); | ||
$(this).addClass('active'); | ||
$('#modal_variable').val($(this).attr('href')); | ||
|
||
}); | ||
|
||
$('.select-file').click(function(e) { | ||
e.preventDefault(); | ||
var url = '/shots/add'; | ||
$.get(url, function(data) { | ||
$('.modal-body').html(data); | ||
}); | ||
$('.modal-footer').children('.btn-primary').text('Add Shot'); | ||
}); | ||
|
||
}); | ||
|
||
</script> |
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
Oops, something went wrong.