link to add info t oa crisis
This commit is contained in:
parent
5d7ac30c85
commit
f9809efa24
@ -3,15 +3,15 @@
|
||||
|
||||
<h2 class="main_degrade_title text-center"><?= h($crisi->type) ?> à <?= h($crisi->address) ?>
|
||||
|
||||
<?php if($crisi->state=='verified'): ?>
|
||||
<?php if($crisi->state == 'spotted'): ?>
|
||||
<i title="Spotted by User" class="fi-sound spotted_icon"></i>
|
||||
<?php endif; ?>
|
||||
<?php if($crisi->state == 'verified'): ?>
|
||||
<i title="Verified by Staff" class="fi-checkbox verified_icon"></i>
|
||||
<?php endif; ?>
|
||||
<?php if($crisi->state=='over'): ?>
|
||||
<?php if($crisi->state == 'over'): ?>
|
||||
<i title="Crisis Ended" class="fi-x-circle"></i>
|
||||
<?php endif; ?>
|
||||
<?php if($crisi->state=='spotted'): ?>
|
||||
<i title="Spotted by User" class="fi-sound spotted_icon"></i>
|
||||
<?php endif; ?>
|
||||
|
||||
</h2>
|
||||
|
||||
@ -19,13 +19,11 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="large-8 columns">
|
||||
|
||||
<p><strong>Créé le : </strong><?= h($crisi->created) ?></br></br>
|
||||
|
||||
<strong>Description : </strong><?= h($crisi->abstract) ?>
|
||||
</p>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<h4>Informations à propos de cette crise :</h4>
|
||||
@ -46,7 +44,11 @@
|
||||
|
||||
</div>
|
||||
<div class="large-4 columns">
|
||||
|
||||
<?php if($crisi->state != 'over' && $this->request->session()->read('Auth.User.id')): ?>
|
||||
<?= $this->Html->link(__('Ajouter des Informations à cette crise'), ['controller' => 'Infos', 'action' => 'add', $crisi->id]) ?>
|
||||
<br>
|
||||
<br>
|
||||
<?php endif; ?>
|
||||
<h4>Ils en parlent...</h4>
|
||||
<a class="twitter-timeline" href="https://twitter.com/hashtag/potus" data-widget-id="672517242656043008" data-screen-name="potus">Tweets sur #crise</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
|
@ -12,8 +12,6 @@
|
||||
echo $this->Form->input('title', ['label' => 'Titre']);
|
||||
echo $this->Form->input('body', ['label' => 'Corps du texte']);
|
||||
echo "<br />";
|
||||
echo $this->Form->input('crisis_id', ['options' => $Crisis, 'label' => 'ID crise']);
|
||||
echo $this->Form->input('user_id', ['options' => $users, 'label' => 'ID utilisateur']);
|
||||
echo $this->Form->input('type', ['label' => 'Type']);
|
||||
?>
|
||||
</fieldset>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<nav class="large-3 medium-4 columns" id="actions-sidebar">
|
||||
<ul class="side-nav">
|
||||
<li class="heading"><?= __('Actions') ?></li>
|
||||
<li><?= $this->Html->link(__('Nouvelle Information'), ['action' => 'add']) ?></li>
|
||||
<li><?= $this->Html->link(__('Liste des Crises'), '/Crisis') ?></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="infos index large-9 medium-8 columns content">
|
||||
|
Loading…
x
Reference in New Issue
Block a user