Skip to content

Commit ea88064

Browse files
committed
/series/add: improve displaying of currency.
@see http://getbootstrap.com/javascript/#tooltips Fix #334
1 parent dd22cb7 commit ea88064

File tree

1 file changed

+24
-28
lines changed
  • src/main/webapp/WEB-INF/views/series

1 file changed

+24
-28
lines changed

src/main/webapp/WEB-INF/views/series/add.html

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,11 @@ <h3 th:text="${#strings.capitalize(add_series)}">
332332
<div class="col-xs-6">
333333
<input type="text" id="michelNumbers" class="form-control js-catalog-numbers" th:field="*{michelNumbers}" />
334334
</div>
335-
<div class="col-xs-3">
336-
<input type="text" class="form-control" size="5" th:field="*{michelPrice}" />
337-
</div>
338-
<div class="col-xs-3">
339-
<select class="form-control" disabled="disabled">
340-
<option value="EUR">EUR</option>
341-
</select>
335+
<div class="col-xs-3 no-padding">
336+
<div class="input-group">
337+
<span class="input-group-addon">&euro;</span>
338+
<input type="text" class="form-control js-with-tooltip" size="5" title="EUR" th:field="*{michelPrice}" />
339+
</div>
342340
</div>
343341
</div>
344342
<span id="michelNumbers.errors" class="help-block" th:if="${#fields.hasErrors('michelNumbers')}" th:each="error : ${#fields.errors('michelNumbers')}" th:text="${error}"></span>
@@ -357,13 +355,11 @@ <h3 th:text="${#strings.capitalize(add_series)}">
357355
<div class="col-xs-6">
358356
<input type="text" id="scottNumbers" class="form-control js-catalog-numbers" th:field="*{scottNumbers}" />
359357
</div>
360-
<div class="col-xs-3">
361-
<input type="text" class="form-control" size="5" th:field="*{scottPrice}" />
362-
</div>
363-
<div class="col-xs-3">
364-
<select class="form-control" disabled="disabled">
365-
<option value="USD">USD</option>
366-
</select>
358+
<div class="col-xs-3 no-padding">
359+
<div class="input-group">
360+
<span class="input-group-addon">$</span>
361+
<input type="text" class="form-control js-with-tooltip" size="5" title="USD" th:field="*{scottPrice}" />
362+
</div>
367363
</div>
368364
</div>
369365
<span id="scottNumbers.errors" class="help-block" th:if="${#fields.hasErrors('scottNumbers')}" th:each="error : ${#fields.errors('scottNumbers')}" th:text="${error}"></span>
@@ -382,13 +378,11 @@ <h3 th:text="${#strings.capitalize(add_series)}">
382378
<div class="col-xs-6">
383379
<input type="text" id="yvertNumbers" class="form-control js-catalog-numbers" th:field="*{yvertNumbers}" />
384380
</div>
385-
<div class="col-xs-3">
386-
<input type="text" class="form-control" size="5" th:field="*{yvertPrice}" />
387-
</div>
388-
<div class="col-xs-3">
389-
<select class="form-control" disabled="disabled">
390-
<option value="EUR">EUR</option>
391-
</select>
381+
<div class="col-xs-3 no-padding">
382+
<div class="input-group">
383+
<span class="input-group-addon">&euro;</span>
384+
<input type="text" class="form-control js-with-tooltip" size="5" title="EUR" th:field="*{yvertPrice}" />
385+
</div>
392386
</div>
393387
</div>
394388
<span id="yvertNumbers.errors" class="help-block" th:if="${#fields.hasErrors('yvertNumbers')}" th:each="error : ${#fields.errors('yvertNumbers')}" th:text="${error}"></span>
@@ -407,13 +401,11 @@ <h3 th:text="${#strings.capitalize(add_series)}">
407401
<div class="col-xs-6">
408402
<input type="text" id="gibbonsNumbers" class="form-control js-catalog-numbers" th:field="*{gibbonsNumbers}" />
409403
</div>
410-
<div class="col-xs-3">
411-
<input type="text" class="form-control" size="5" th:field="*{gibbonsPrice}" />
412-
</div>
413-
<div class="col-xs-3">
414-
<select class="form-control" disabled="disabled">
415-
<option value="GBP">GBP</option>
416-
</select>
404+
<div class="col-xs-3 no-padding">
405+
<div class="input-group">
406+
<span class="input-group-addon">&pound;</span>
407+
<input type="text" class="form-control js-with-tooltip" size="5" title="GBP" th:field="*{gibbonsPrice}" />
408+
</div>
417409
</div>
418410
</div>
419411
<span id="gibbonsNumbers.errors" class="help-block" th:if="${#fields.hasErrors('gibbonsNumbers')}" th:each="error : ${#fields.errors('gibbonsNumbers')}" th:text="${error}"></span>
@@ -481,6 +473,10 @@ <h3 th:text="${#strings.capitalize(add_series)}">
481473
.find('.glyphicon')
482474
.toggleClass('glyphicon-chevron-down glyphicon-chevron-right');
483475
});
476+
477+
$('.js-with-tooltip').tooltip({
478+
'placement': 'right'
479+
});
484480
});
485481
</script>
486482
</body>

0 commit comments

Comments
 (0)