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,10 +1,20 @@
<script id="applicationDetailView.ejs" type="text/template"> <script id="applicationDetailView.ejs" type="text/template">
<div class="applicationDetailView"> <div class="applicationDetailView">
<div class="headerBar">
<div class="breadcrumb">
<a class="activeBread" href="#applications">Applications</a>
&gt;
<a class="disabledBread">
<%= attributes.name %>
</a>
</div>
</div>
<section> <section>
<div class="header">
<div class="header_left"> <div class="header_left">
<img src="foxxes/thumbnail/<%=attributes.app %>" class="icon" alt="Icon for App"> <img src="foxxes/thumbnail/<%=attributes.app %>" class="icon" alt="Icon for App">
<input type="button" value="Open"> <input type="button" class="open button-success" value="Open">
<input type="button" value="Delete"> <input type="button" class="delete button-danger" value="Delete">
</div> </div>
<div class="header_right"> <div class="header_right">
<h3> <h3>
@ -14,6 +24,7 @@
</h3> </h3>
<p class="description"><%= attributes.description %></p> <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>
</div> </div>

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,15 +3,24 @@
float: left; float: left;
width: 900px; width: 900px;
.header {
float: left;
margin-bottom: 10px;
.header_left { .header_left {
float: left; float: left;
width: 170px; width: 170px;
text-align: center; text-align: center;
img {
margin: 0px 0px 4px;
}
} }
.header_right { .header_right {
float: left; float: left;
clear: right; clear: right;
padding: 5px;
.license, .version { .license, .version {
-webkit-border-radius: 6px; -webkit-border-radius: 6px;
@ -25,6 +34,7 @@
top: -2px; top: -2px;
} }
} }
}
.swagger { .swagger {
iframe { iframe {

View File

@ -5906,14 +5906,20 @@ 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;
margin-bottom: 10px; }
.applicationDetailView section .header .header_left {
float: left; float: left;
width: 170px; width: 170px;
text-align: center; } text-align: center; }
.applicationDetailView section .header_right { .applicationDetailView section .header .header_left img {
margin: 0px 0px 4px; }
.applicationDetailView section .header .header_right {
float: left; float: left;
clear: right; } clear: right;
.applicationDetailView section .header_right .license, .applicationDetailView section .header_right .version { padding: 5px; }
.applicationDetailView section .header .header_right .license, .applicationDetailView section .header .header_right .version {
-webkit-border-radius: 6px; -webkit-border-radius: 6px;
-moz-border-radius: 6px; -moz-border-radius: 6px;
border-radius: 6px; border-radius: 6px;

File diff suppressed because one or more lines are too long