Skip to content

Commit

Permalink
Enhance CI
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Feb 11, 2024
1 parent 220e9b2 commit bcbe6e3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions templates/default/categories_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@
<div class="ui secondary yellow segment">
<div class="ui three fields">
<div class="field">
<label for="filter_str">{{_T("Search:") }}</label>
<label for="filter_str">{{ _T("Search:") }}</label>
<input type="text" name="filter_str" id="filter_str" value="{{ filters.filter_str }}" type="search" placeholder="{{ _T("Enter a value") }}"/>
</div>
<div class="field">
<label for="email_filter">{{ _T("Active:", "objectslend") }}</label>
<div class="inline fields">
<div class="field inline">
<div class="ui radio checkbox">
<input type="radio" name="active_filter" id="filter_dc_active" value="{{ constant('GaletteObjectsLend\\Repository\\Categories::ALL_CATEGORIES')}}"{% if filters.active_filter == constant('GaletteObjectsLend\\Repository\\Status::ALL') %} checked="checked"{% endif %}>
<input type="radio" name="active_filter" id="filter_dc_active" value="{{ constant('GaletteObjectsLend\\Repository\\Categories::ALL_CATEGORIES') }}"{% if filters.active_filter == constant('GaletteObjectsLend\\Repository\\Status::ALL') %} checked="checked"{% endif %}>
<label for="filter_dc_active" >{{ _T("Don't care") }}</label>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/objects_edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<i class="print icon"></i> {{ _T("Print object", "objectslend") }}
</a>
{% endif %}
<input type="hidden" name="object_id" value="{{ object.getId()}}">
<input type="hidden" name="object_id" value="{{ object.getId() }}">
</div>
{% include "components/forms/csrf.html.twig" %}
</form>
Expand Down
8 changes: 4 additions & 4 deletions templates/default/objects_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
'icon': 'file pdf grey'
},
{
'label': _T("Remove %object from database", "objectslend")|replace({ '%object': object.getName() }),
'label': _T("Remove %object from database", "objectslend")|replace({'%object': object.getName()}),
'route': {
'name': 'objectslend_remove_object',
'args': {'id': object.getId()}
Expand Down Expand Up @@ -401,7 +401,7 @@
}
} %}

{% set batch_actions = [
{% set batch_actions = [
{
'name': 'print_list__directdownload',
'label': _T("Print objects list", "objectslend"),
Expand Down Expand Up @@ -431,7 +431,7 @@
datatype: 'html',
{% include "elements/js/loader.js.twig" with {
loader: "action",
}%},
} %},
success: function(res){
var _content = $($.parseHTML(res)).find('div.main-content').children();
{% include "elements/js/modal.js.twig" with {
Expand Down Expand Up @@ -466,7 +466,7 @@
datatype: 'html',
{% include "elements/js/loader.js.twig" with {
loader: "action",
}%},
} %},
success: function(res){
var _content = $($.parseHTML(res)).find('div.main-content').children();
{% include "elements/js/modal.js.twig" with {
Expand Down
8 changes: 4 additions & 4 deletions templates/default/preferences.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#}
{% extends 'page.html.twig' %}

{% macro yesno_checkbox(label, name, tip, yes, no) %}
{% macro yesno_checkbox(label, name, tip, yes, no) %}
<div class="field">
<div class="inline fields">
<label title="{{ tip|e() }}">{{ label }}
Expand Down Expand Up @@ -85,7 +85,7 @@
] %}

{% for yesno_box in yesno_boxes %}
{{ _self.yesno_checkbox(
{{ _self.yesno_checkbox(
yesno_box.label,
yesno_box.name,
yesno_box.tip,
Expand Down Expand Up @@ -173,7 +173,7 @@
] %}

{% for yesno_box in yesno_boxes %}
{{ _self.yesno_checkbox(
{{ _self.yesno_checkbox(
yesno_box.label,
yesno_box.name,
yesno_box.tip,
Expand Down Expand Up @@ -302,7 +302,7 @@
] %}

{% for yesno_box in yesno_boxes %}
{{ _self.yesno_checkbox(
{{ _self.yesno_checkbox(
yesno_box.label,
yesno_box.name,
yesno_box.tip ?? null,
Expand Down
8 changes: 4 additions & 4 deletions templates/default/status_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
<div class="ui secondary yellow segment">
<div class="ui four fields">
<div class="field">
<label for="event_filter">{{_T("Search:") }}</label>
<label for="event_filter">{{ _T("Search:") }}</label>
<input type="text" name="filter_str" id="filter_str" value="{{ filters.filter_str }}" type="search" placeholder="{{ _T("Enter a value") }}"/>
</div>
<div class="field">
<label for="email_filter">{{ _T("Active:", "objectslend") }}</label>
<div class="inline fields">
<div class="field inline">
<div class="ui radio checkbox">
<input type="radio" name="active_filter" id="filter_dc_active" value="{{ constant('GaletteObjectsLend\\Repository\\Status::ALL')}}"{% if filters.active_filter == constant('GaletteObjectsLend\\Repository\\Status::ALL') %} checked="checked"{% endif %}>
<input type="radio" name="active_filter" id="filter_dc_active" value="{{ constant('GaletteObjectsLend\\Repository\\Status::ALL') }}"{% if filters.active_filter == constant('GaletteObjectsLend\\Repository\\Status::ALL') %} checked="checked"{% endif %}>
<label for="filter_dc_active" >{{ _T("Don't care") }}</label>
</div>
</div>
Expand All @@ -98,7 +98,7 @@
<div class="inline fields">
<div class="field inline">
<div class="ui radio checkbox">
<input type="radio" name="stock_filter" id="filter_dc_stock" value="{{ constant('GaletteObjectsLend\\Repository\\Status::DC_STOCK')}}"{% if filters.stock_filter == constant('GaletteObjectsLend\\Repository\\Status::DC_STOCK') %} checked="checked"{% endif %}>
<input type="radio" name="stock_filter" id="filter_dc_stock" value="{{ constant('GaletteObjectsLend\\Repository\\Status::DC_STOCK') }}"{% if filters.stock_filter == constant('GaletteObjectsLend\\Repository\\Status::DC_STOCK') %} checked="checked"{% endif %}>
<label for="filter_dc_stock" >{{ _T("Don't care") }}</label>
</div>
</div>
Expand Down Expand Up @@ -177,7 +177,7 @@
'icon': 'edit'
},
{
'label': _T("Remove %status from database", "objectslend")|replace({ '%status': status.status_text }),
'label': _T("Remove %status from database", "objectslend")|replace({'%status': status.status_text}),
'route': {
'name': 'objectslend_remove_status',
'args': {'id': status.status_id}
Expand Down
4 changes: 2 additions & 2 deletions templates/default/take_object.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<img src="{% if object.object_id %}{{ url_for("objectslend_photo", {"type": "object", "mode": "thumbnail", "id": object.object_id}) }}{% else %}{{ url_for("objectslend_photo", {"type": "object", "mode": "thumbnail"}) }}{% endif %}"
class="picture fright"
width="{{ object.picture.getOptimalThumbWidth(olendsprefs) }}"
height="{{ object.picture.getOptimalThumbHeight(olendsprefs)}}"
height="{{ object.picture.getOptimalThumbHeight(olendsprefs) }}"
alt="{{ _T("Object photo", "objectslend") }}"/>
</div>

Expand Down Expand Up @@ -162,7 +162,7 @@
{% endif %}
</div>
</div>
{% else %}
{% else %}
<div class="ui styled fluid accordion field">
<div class="active title">
<i class="icon dropdown"></i>
Expand Down

0 comments on commit bcbe6e3

Please sign in to comment.