Breadcrumbs for the views

- makes navigating the site easier
- some new css changes to support this
pull/217/head
iglocska 2013-07-31 15:08:10 +02:00
parent 64f32389e9
commit 8d2595d592
50 changed files with 60 additions and 1 deletions

2
.gitignore vendored
View File

@ -17,3 +17,5 @@
/app/Config/database.php
/app/Config/core.php
/cakephp
/app/webroot/gpg.asc
/app/webroot/index.html

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="attributes form">
<?php echo $this->Form->create('Attribute');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="attributes form">
<?php echo $this->Form->create('Attribute', array('enctype' => 'multipart/form-data','onSubmit' => 'document.getElementById("AttributeMalware").removeAttribute("disabled");'));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="attributes form">
<?php echo $this->Form->create('Attribute', array('enctype' => 'multipart/form-data'));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="attributes form">
<?php echo $this->Form->create('Attribute');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="attributes index">
<h2>Attributes</h2>
<?php

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="attributes form">
<?php echo $this->Form->create('Attribute');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="events form">
<?php echo $this->Form->create('', array('type' => 'file'));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="events form">
<?php echo $this->Form->create('Event', array('type' => 'file'));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<?php
$mayModify = (($isAclModify && $this->request->data['Event']['user_id'] == $me['id']) || ($isAclModifyOrg && $this->request->data['Event']['orgc'] == $me['org']));
$mayPublish = ($isAclPublish && $this->request->data['Event']['orgc'] == $me['org']);

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="events form">
<?php echo $this->Form->create('Event');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="event index">
<h2>Export</h2>
<p>Export functionality is designed to automatically generate signatures for intrusion detection systems. To enable signature generation for a given attribute, Signature field of this attribute must be set to Yes.

View File

@ -3,6 +3,7 @@
<?php if(empty($this->passedArgs['searchDatefrom'])) $this->passedArgs['searchDatefrom'] = '';?>
<?php if(empty($this->passedArgs['searchDateuntil'])) $this->passedArgs['searchDateuntil'] = '';?>
<?php if(empty($this->passedArgs['searchpublished'])) $this->passedArgs['searchpublished'] = '2';?>
<?php echo $this->element('bread_crumbs'); ?>
<div class="events index">
<h2>Events</h2>
<div class="pagination">

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="index">
<h2>Results of the import: </h2>
<h3><?php echo count($attributes); ?> attributes created successfully, <?php echo count($fails); ?> indicators could not be mapped and saved. </h3>

View File

@ -1,6 +1,7 @@
<?php
$mayModify = (($isAclModify && $event['Event']['user_id'] == $me['id']) || ($isAclModifyOrg && $event['Event']['orgc'] == $me['org']));
$mayPublish = ($isAclPublish && $event['Event']['orgc'] == $me['org']);
echo $this->element('bread_crumbs');
?>
<div class="actions <?php echo $debugMode;?>">
<ul class="nav nav-list">

View File

@ -49,6 +49,9 @@
if (Configure::read('debug') == 0) echo "style=\"padding-top:100px;\"";
?>
>
<div class="breadcrumb <?php echo $debugMode; ?>">
<?php echo $this->Html->getCrumbs(' > ', 'Home');?>
</div>
<?php echo $this->fetch('content'); ?>
</div>
<?php

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="logs index">
<h2>Logs</h2>
<?php

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="logs form">
<?php echo $this->Form->create('Log', array('novalidate'=>true));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="logs index">
<h2>Logs</h2>
<div class="pagination">

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="regexp form">
<?php echo $this->Form->create('Regexp');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="regexp form">
<?php echo $this->Form->create('Regexp');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="regexp index">
<h2>Import Regexp</h2>
<div class="pagination">

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="regexp index">
<h2>Import Regexp</h2>
<div class="pagination">

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="roles form">
<?php echo $this->Form->create('Role');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="roles form">
<?php echo $this->Form->create('Role');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="roles index">
<h2><?php echo __('Roles');?></h2>
<div class="pagination">

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="roles index">
<h2><?php echo __('Roles');?></h2>
<div class="pagination">

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="roles view">
<h2><?php echo __('Role');?></h2>
<dl>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="servers form">
<?php echo $this->Form->create('Server');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="servers form">
<?php echo $this->Form->create('Server', array('novalidate'=>true));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="servers index">
<h2>Servers</h2>
<div class="pagination">

View File

@ -1,4 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="shadow_attributes form">
<?php echo $this->Form->create('ShadowAttribute');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="shadow_attributes form">
<?php echo $this->Form->create('ShadowAttribute', array('enctype' => 'multipart/form-data','onSubmit' => 'document.getElementById("ShadowAttributeMalware").removeAttribute("disabled");'));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="shadowAttributes form">
<?php echo $this->Form->create('ShadowAttribute');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="users form">
<?php echo $this->Form->create('User', array('novalidate'=>true));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="users form">
<?php echo $this->Form->create('User', array('novalidate'=>true));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<script>
function showMessage(){
document.getElementById("messageDiv").style.display="none"){

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs');?>
<div class="users index">
<h2><?php echo __('Users');?></h2>
<div class="pagination">

View File

@ -1,4 +1,5 @@
<?php
echo $this->element('bread_crumbs');
$buttonAddStatus = $isAclAdd ? 'button_on':'button_off';
$mayModify = ($isSiteAdmin || ($isAdmin && ($user['User']['org'] == $me['org'])));
$buttonModifyStatus = $mayModify ? 'button_on':'button_off';

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="users form">
<?php echo $this->Form->create('User');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="users form">
<?php echo $this->Form->create('User', array('novalidate' => true));?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="users index">
<h2>Members</h2>
<table class="table table-striped table-condensed table-bordered" style="width:300px;">

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="news view">
<h2>News</h2>
<h3>June 2012</h3>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="users form">
<h2>CyDefSIG Terms and Conditions</h2>
<p>Please add your terms and conditions here</p>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs'); ?>
<div class="users view">
<h2><?php echo __('User');?></h2>
<dl>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs');?>
<div class="whitelist form">
<?php echo $this->Form->create('Whitelist');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs');?>
<div class="whitelist form">
<?php echo $this->Form->create('Whitelist');?>
<fieldset>

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs');?>
<div class="whitelist index">
<h2>Import Whitelist</h2>
<div class="pagination">

View File

@ -1,3 +1,4 @@
<?php echo $this->element('bread_crumbs');?>
<div class="whitelist index">
<h2>Signature Whitelist</h2>
<div class="pagination">

View File

@ -429,4 +429,12 @@ dd {
color: #FF0000 !important;
font-weight:bold !important;
}
.breadcrumb {
position: absolute;
padding-top:0px;
padding-left:0px;
padding-bottom:0px;
left:13.5%;
}