Skip to content

Commit

Permalink
Add a single liner input box that will be the main entry point. For #18.
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Jan 24, 2016
1 parent 3732654 commit 476022f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
4 changes: 0 additions & 4 deletions librarian/static/styles/add_books.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
div.content-creator-buttons{
padding-top: 18px;
}

div.legend{
padding: 0.3em;
display: inline-block;
Expand Down
13 changes: 12 additions & 1 deletion librarian/static/styles/librariantheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,15 @@ div.reprocess_book{
color: #000;
}

div.empty_set, div.unsaved_book, div.grouped_input{
div.empty_set, div.unsaved_book, div.grouped-input{
padding: 10px;
background-color: #dadada;
}

div.grouped-input, div.input-group{
width: 100%;
}

a.navbox{
color: #ffffff;
word-spacing: normal;
Expand Down Expand Up @@ -183,6 +187,13 @@ input.infrequent{
color: #000;
}

/*
Make important because to override bootstrap
*/
input.single-liner-halves{
width: 50% !important;
}

/*Images*/

img.logo {
Expand Down
12 changes: 10 additions & 2 deletions librarian/templates/add_books.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@

{% macro render_creator_listing(creator_title) %}
{% set listing_label = "".join((creator_title.capitalize(), "(s):")) %}
<div class="grouped_input" id="{{ creator_title }}-block">
<div class="grouped-input" id="{{ creator_title }}-block">
<div class="row">
<div class="col-md-11">
<h3>{{ listing_label }}</h3>
</div>
<div class="col-md-1 content-creator-buttons">
</div>
<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">
</div>
</div>
<div class="col-md-1">
<i class="fa fa-plus-circle fa-2x clickable" id="{{ creator_title }}-add"></i>
</div>
</div>
Expand Down

0 comments on commit 476022f

Please sign in to comment.