1
0
Fork 0

Design for applicationDetailView

* Open and Delete App Buttons Fake implementation
* Breadcrumb for applicationDetailView
This commit is contained in:
Lucas Dohmen 2014-12-12 21:38:25 +01:00 committed by Michael Hackstein
parent c62cfb31cd
commit 03a827cf12
5 changed files with 83 additions and 47 deletions

View File

@ -1,18 +1,29 @@
<script id="applicationDetailView.ejs" type="text/template"> <script id="applicationDetailView.ejs" type="text/template">
<div class="applicationDetailView"> <div class="applicationDetailView">
<section> <div class="headerBar">
<div class="header_left"> <div class="breadcrumb">
<img src="foxxes/thumbnail/<%=attributes.app %>" class="icon" alt="Icon for App"> <a class="activeBread" href="#applications">Applications</a>
<input type="button" value="Open"> &gt;
<input type="button" value="Delete"> <a class="disabledBread">
</div>
<div class="header_right">
<h3>
<%= attributes.name %> <%= attributes.name %>
<span class="license"><%= attributes.license %></span> </a>
<span class="version"><%= attributes.app.split(':').pop() %></span> </div>
</h3> </div>
<p class="description"><%= attributes.description %></p> <section>
<div class="header">
<div class="header_left">
<img src="foxxes/thumbnail/<%=attributes.app %>" class="icon" alt="Icon for App">
<input type="button" class="open button-success" value="Open">
<input type="button" class="delete button-danger" value="Delete">
</div>
<div class="header_right">
<h3>
<%= attributes.name %>
<span class="license"><%= attributes.license %></span>
<span class="version"><%= attributes.app.split(':').pop() %></span>
</h3>
<p class="description"><%= attributes.description %></p>
</div>
</div> </div>
<div class="swagger"> <div class="swagger">
<iframe src="http://localhost:8529/_db/_system/_admin/aardvark/standalone.html#application/documentation/<%= attributes._key %>" name="Documentation"></iframe> <iframe src="http://localhost:8529/_db/_system/_admin/aardvark/standalone.html#application/documentation/<%= attributes._key %>" name="Documentation"></iframe>

View File

@ -8,11 +8,20 @@ window.ApplicationDetailView = Backbone.View.extend({
template: templateEngine.createTemplate('applicationDetailView.ejs'), template: templateEngine.createTemplate('applicationDetailView.ejs'),
events: { events: {
'click .open': 'openApp',
'click .delete': 'deleteApp'
}, },
render: function() { render: function() {
console.log(this.model);
$(this.el).html(this.template.render(this.model)); $(this.el).html(this.template.render(this.model));
return $(this.el); return $(this.el);
},
openApp: function() {
alert('Open!');
},
deleteApp: function() {
alert('Delete!');
} }
}); });

View File

@ -3,26 +3,36 @@
float: left; float: left;
width: 900px; width: 900px;
.header_left { .header {
float: left; float: left;
width: 170px; margin-bottom: 10px;
text-align: center;
}
.header_right { .header_left {
float: left; float: left;
clear: right; width: 170px;
text-align: center;
.license, .version { img {
-webkit-border-radius: 6px; margin: 0px 0px 4px;
-moz-border-radius: 6px; }
border-radius: 6px; }
border: 1px solid #AAA;
color: #AAA; .header_right {
padding: 0px 8px; float: left;
font-size: 0.6em; clear: right;
position: relative; padding: 5px;
top: -2px;
.license, .version {
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
border: 1px solid #AAA;
color: #AAA;
padding: 0px 8px;
font-size: 0.6em;
position: relative;
top: -2px;
}
} }
} }

View File

@ -5906,23 +5906,29 @@ input.gv-radio-button {
.applicationDetailView section { .applicationDetailView section {
float: left; float: left;
width: 900px; } width: 900px; }
.applicationDetailView section .header_left { .applicationDetailView section .header {
float: left; float: left;
width: 170px; margin-bottom: 10px; }
text-align: center; } .applicationDetailView section .header .header_left {
.applicationDetailView section .header_right { float: left;
float: left; width: 170px;
clear: right; } text-align: center; }
.applicationDetailView section .header_right .license, .applicationDetailView section .header_right .version { .applicationDetailView section .header .header_left img {
-webkit-border-radius: 6px; margin: 0px 0px 4px; }
-moz-border-radius: 6px; .applicationDetailView section .header .header_right {
border-radius: 6px; float: left;
border: 1px solid #AAA; clear: right;
color: #AAA; padding: 5px; }
padding: 0px 8px; .applicationDetailView section .header .header_right .license, .applicationDetailView section .header .header_right .version {
font-size: 0.6em; -webkit-border-radius: 6px;
position: relative; -moz-border-radius: 6px;
top: -2px; } border-radius: 6px;
border: 1px solid #AAA;
color: #AAA;
padding: 0px 8px;
font-size: 0.6em;
position: relative;
top: -2px; }
.applicationDetailView section .swagger iframe { .applicationDetailView section .swagger iframe {
width: 100%; width: 100%;
height: 600px; } height: 600px; }

File diff suppressed because one or more lines are too long