Cloudlog/application/views/contesting/create.php

39 wiersze
1.3 KiB
PHP

<div class="container" id="create_contest">
<br>
<?php if($this->session->flashdata('message')) { ?>
<!-- Display Message -->
<div class="alert-message error">
<p><?php echo $this->session->flashdata('message'); ?></p>
</div>
<?php } ?>
<?php if($this->session->flashdata('notice')) { ?>
<div id="message" >
<?php echo $this->session->flashdata('notice'); ?>
</div>
<?php } ?>
<?php $this->load->helper('form'); ?>
<?php echo validation_errors(); ?>
<form>
<div class="form-group">
<label for="contestInput">Contest Name</label>
<input type="text" class="form-control" name="contestname" id="contestInput" aria-describedby="contestInputHelp" required>
<small id="contestInputHelp" class="form-text text-muted">Name of Contest</small>
</div>
<div class="form-group">
<label for="adifcontestInput">Contest ADIF Name</label>
<input type="text" class="form-control" name="adifcontestname" id="adifcontestInput" aria-describedby="adifcontestInputHelp">
<small id="adifcontestInputHelp" class="form-text text-muted">Name of Contest in ADIF-specification</small>
</div>
<button type="button" onclick="createContest(this.form);" class="btn btn-primary btn-sm"><i class="fas fa-plus-square"></i> Create Contest</button>
</form>
</div>