<?php $tmpl->set('title', 'Delete Line'); $tmpl->place('header'); ?> <form action="<?php echo Line::makeURL('delete', $line); ?> " method="post"> <div class="main" id="main"> <div class="warning">Are you sure you want to delete this line? <strong><?php echo $graph->prepareName(); ?> </strong>? </div> <div class="actions"> <input class="btn danger" type="submit" value="Yes, delete this line" /> <a class="btn" href="<?php echo Graph::makeURL('edit', $graph); ?> ">No, please keep it</a> <input type="hidden" name="token" value="<?php echo fRequest::generateCSRFToken(); ?> " /> </div> </div> </form> <?php
?> </tr> <?php $index++; } ?> </tbody></table> <?php if ($number_of_lines > 1) { ?> <p class="text-info"><em>* You can also use "drag and drop" to reorder the lines.</em></p> <?php } ?> <?php } catch (fEmptySetException $e) { ?> <p class="info">There are currently no Tattle lines available for this graph . <a href="<?php echo Line::makeURL('add', $graph); ?> ">Add one now</a></p> <?php } } ?> </div> </div> </div> </div> <?php $tmpl->place('footer');
<th>Action</th> </tr> </thead> <tbody> <?php $first = TRUE; foreach ($lines as $line) { ?> <tr> <td><?=$line->prepareAlias(); ?></td> <td><?=$line->prepareTarget(); ?></td> <td><?=$line->prepareColor(); ?></td> <td><a href="<?=Line::makeURL('edit', $line); ?>">Edit</a> | <a href="<?=Line::makeURL('delete', $line); ?>">Delete</a></td> </tr> <?php } ?> </tbody></table> <? } catch (fEmptySetException $e) { ?> <p class="info">There are currently no Tattle lines available for this graph . <a href="<?=Line::makeURL('add',$graph); ?>">Add one now</a></p> <?php } } ?> </div> </div> </div> </div> <?php $tmpl->place('footer');