Skip to content

Commit

Permalink
Modify UI further.
Browse files Browse the repository at this point in the history
We need to modify the correspoding JavaScript for this. Try to reduce usage of
global variables there!
  • Loading branch information
skytreader committed Jan 24, 2016
1 parent 476022f commit bbb272b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions librarian/static/scripts/add-books/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ function renderDeleteButton(){
return container;
}

/**
Creates the DOM element that displays the name of the added person.
*/
function renderNameInput(creatorType, namePart){
var placeholder = namePart.capitalize();
var textbox = document.createElement("input");
Expand Down
12 changes: 6 additions & 6 deletions librarian/templates/add_books.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
<div class="row">
<div class="col-md-11">
<div class="input-group">
<input type="text" class="form-control single-liner-halves" placeholder="First name">
<input type="text" class="form-control single-liner-halves" placeholder="Last name">
<input type="text" class="form-control single-liner-halves" placeholder="Last name" id="{{creator_title}}-proxy-lastname">
<input type="text" class="form-control single-liner-halves" placeholder="First name" id="{{creator_title}}-proxy-lastname">
</div>
</div>
<div class="col-md-1">
<i class="fa fa-plus-circle fa-2x clickable" id="{{ creator_title }}-add"></i>
</div>
</div>
<span id="{{ creator_title }}-list">
<div class="row">
<ul id="{{ creator_title }}-list">
<!-- div class="row">
<div class="col-md-5">
<input type="text" name="{{ creator_title }}-proxy-lastname" placeholder="Lastname" class="form-control">
</div>
Expand All @@ -30,8 +30,8 @@
<div class="col-md-2">
<i class="fa fa-minus-circle fa-2x clickable disabled"></i>
</div>
</div>
</span>
</div -->
</ul>
</div>
{% endmacro %}

Expand Down

0 comments on commit bbb272b

Please sign in to comment.