-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2911 from skaut/2908-protidoklad-z-akce-do-pokladny
Switched the base class from BaseControl to Dialog.
- Loading branch information
Showing
2 changed files
with
33 additions
and
37 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
46 changes: 23 additions & 23 deletions
46
app/AccountancyModule/Components/Cashbook/templates/InvertChitDialog.latte
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,23 +1,23 @@ | ||
<div n:snippet n:inner-if="$renderModal" class="modal {if $renderModal}rendered{/if}" tabindex="-1"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h4 class="modal-title">Vytvořit protidoklad <i class="fas fa-exchange-alt"></i></h4> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
<div class="modal-body"> | ||
{if $noCashbooks} | ||
Nemáte žádné pokladní knihy, ve kterých můžete vytvořit protidoklad. | ||
{else} | ||
<p> | ||
Vyberte pokladní knihu, ve které má být protidoklad vytvořen: | ||
</p> | ||
{control form} | ||
{/if} | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-light" data-bs-dismiss="modal">Storno</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{layout $layout} | ||
|
||
{define control $input, $extraClasses} | ||
<input n:name="$input" n:class="$input->hasErrors() ? 'is-invalid', form-control, $extraClasses ?? ''"> | ||
{/define} | ||
|
||
{define errors $input} | ||
<div class="invalid-feedback d-block" n:foreach="$input->getErrors() as $error">{$error}</div> | ||
{/define} | ||
|
||
{block dialog-title}Vytvořit protidoklad{/block} | ||
|
||
{block dialog-body} | ||
{if $noCashbooks} | ||
Nemáte žádné pokladní knihy, ve kterých můžete vytvořit protidoklad. | ||
{else} | ||
<p> | ||
Vyberte pokladní knihu, ve které má být protidoklad vytvořen: | ||
</p> | ||
{control form} | ||
{/if} | ||
|
||
{/block} |