-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
$this->attributes = str_contains($this->attributes, 'class="') ? str_replace('class="', 'class="grid gtr-f ', $this->attributes) : $this->attributes . 'class="grid gtr-f"'; | ||
?> | ||
|
||
<form<?php if ($this->action): ?> action="<?= $this->action ?>"<?php endif; ?> method="<?= $this->method ?>" enctype="<?= $this->enctype ?>"<?= $this->attributes ?><?= $this->novalidate ?><?php if ($this->ajax): ?> data-ajax-form="<?= $this->id ?>"<?php endif; ?>> | ||
<div class="formbody inside"> | ||
<?php if ($this->errors): ?> | ||
<?php foreach ($this->errors as $error): ?> | ||
<p class="error"><?= $error ?></p> | ||
<?php endforeach; ?> | ||
<?php endif; ?> | ||
<?php if ('get' != $this->method): ?> | ||
<input type="hidden" name="FORM_SUBMIT" value="<?= $this->formSubmit ?>"> | ||
<input type="hidden" name="REQUEST_TOKEN" value="<?= $this->requestToken ?>"> | ||
<?php if ($this->maxFileSize): ?> | ||
<input type="hidden" name="MAX_FILE_SIZE" value="<?= $this->maxFileSize ?>"> | ||
<?php endif; ?> | ||
<?php endif; ?> | ||
<?= $this->hidden ?> | ||
<?= $this->fields ?> | ||
</div> | ||
</form> |