mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
UI improvements, save build feature partial implementation
This commit is contained in:
21
app/views/_header.html
Normal file
21
app/views/_header.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<header>
|
||||
<div class="l" style="margin-right: 2em;"><a ui-sref="shipyard" class="logo shipyard"></a></div>
|
||||
|
||||
<div class="l menu">
|
||||
<div class="menu-header" ng-class="{selected: openedMenu=='b', disabled: !bs.hasBuilds}" ng-click="openMenu('b')">Builds</div>
|
||||
<div class="menu-list" ng-if="openedMenu=='b'">
|
||||
<ul class="left" ng-repeat="(shipId,builds) in allBuilds">
|
||||
{{ships[shipId].properties.name}}
|
||||
<li ng-repeat="(name, build) in builds">
|
||||
<a ui-sref-active="active" ui-sref="outfit({shipId:shipId, code:build, bn:name})" ng-bind="name"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="r">
|
||||
<a class="logo github" href="https://github.com/cmmcleod/ed-shipyard" target="_blank" title="Shipyard Github Project"></a>
|
||||
<a class="logo reddit" href="#" target="_blank" title="Reddit Thread"></a>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
@@ -1,11 +0,0 @@
|
||||
<header>
|
||||
<div class="left">
|
||||
<a ui-sref="shipyard" class="logo shipyard"></a>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<a class="logo github" href="https://github.com/cmmcleod/ed-shipyard" target="_blank" title="Shipyard Github Project"></a>
|
||||
<a class="logo reddit" href="#" target="_blank" title="Reddit Thread"></a>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
@@ -1,12 +1,14 @@
|
||||
<div class="error">
|
||||
<h1>
|
||||
<span ng-if="msgPre">{{msgPre}}</span>
|
||||
<small ng-if="msgHighlight">{{msgHighlight}}</small>
|
||||
<span ng-if="msgPost">{{msgPost}}</span>
|
||||
</h1>
|
||||
|
||||
<!-- TODO: add awesome relevant SVG based on code /-->
|
||||
|
||||
<div>
|
||||
<h1>Error {{type}}</h1>
|
||||
<h2 ng-bind="message"></h2>
|
||||
|
||||
<p ng-if="path" ng-bind="path"></p>
|
||||
<p ng-if="path" ng-bind="path"></p>
|
||||
<p ng-if="type" ng-bind="type"></p>
|
||||
</div>
|
||||
|
||||
<!-- TODO: formatting /-->
|
||||
<!-- TODO: add awesome relevant SVG based on code /-->
|
||||
<!-- TODO: Add github issue link /-->
|
||||
@@ -124,16 +124,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="build">
|
||||
<h1 ng-bind="ship.name"></h1>
|
||||
<input ng-model="buildName" placeholder="Build Name" />
|
||||
<button ng-click="saveBuild()" ng-disabled="code == lastSaveCode">Save</button>
|
||||
<button ng-click="reloadBuild()" ng-disabled="!lastSaveCode || code == lastSaveCode">Reload</button>
|
||||
<button ui-sref="outfit({shipId: ship.id,code:null})" ng-disabled="!code">Clear</button>
|
||||
<button ng-click="deleteBuild()" ng-disabled="!lastSaveCode">Delete</button>
|
||||
</div>
|
||||
|
||||
<div id="summary">
|
||||
<div id="overview" class="list">
|
||||
<h1 ng-bind="ship.name"></h1>
|
||||
<div id="build">
|
||||
<input ng-model="buildName" placeholder="Enter Build Name" />
|
||||
<button ng-click="saveBuild()" ng-disabled="code == savedCode">Save</button>
|
||||
<button ng-click="reloadBuild()" ng-disabled="!savedCode || code == savedCode">Reload</button>
|
||||
<button ui-sref="outfit({shipId: ship.id,code:null})" ng-disabled="!code">Clear</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="header">Maneuverability</div>
|
||||
<div class="summary">
|
||||
|
||||
Reference in New Issue
Block a user