Pőcze Bence
96b9ef6a72
Some checks failed
rvr-nextgen/pipeline/pr-master There was a failure building this commit
16 lines
981 B
PHP
16 lines
981 B
PHP
@extends(templates/layout_normal)
|
|
|
|
@section(main)
|
|
<h2><?= isset($community) ? $community->getName() . ' - Edit' : 'New community' ?></h2>
|
|
<div class="box">
|
|
<form id="communityForm" action="/communities/<?= isset($community) ? $community->getId() . '/edit' : 'new' ?>" method="post" data-redirect-on-success="true">
|
|
<input type="text" class="text big fullWidth" name="name" placeholder="Name" value="<?= isset($community) ? $community->getName() : '' ?>" required>
|
|
<input type="text" class="text big fullWidth marginTop" name="currency" value="<?= isset($community) ? $community->getCurrency() : '' ?>" placeholder="Default currency" maxlength="3" required>
|
|
<p id="accountFormError" class="formError justify marginTop"></p>
|
|
<div class="right marginTop">
|
|
<button type="submit" name="submit"><?= isset($community) ? 'Save' : 'Create' ?></button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
@endsection
|