93 lines
3.5 KiB
HTML
93 lines
3.5 KiB
HTML
<style>
|
|
.panel{
|
|
box-shadow: none;
|
|
border: none;
|
|
}
|
|
</style>
|
|
|
|
<div class="home-container">
|
|
|
|
<div class="white-well">
|
|
<h1>Create a new Website</h1>
|
|
<h3>Select a Domain</h3>
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" placeholder="www" ng-model="vm.newRecord" ng-change="vm.setRecord()" />
|
|
<div class="input-group-btn">
|
|
<!-- Single button -->
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li ng-repeat="record in vm.records track by $index"><button class="btn btn-link" ng-bind="record.sub" ng-click="vm.selectRecord(record)">www</button></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<span class="input-group-addon">.</span>
|
|
|
|
<div angucomplete-alt
|
|
placeholder="Select a domain"
|
|
pause="300"
|
|
selected-object="vm.selectedDomain"
|
|
local-data="domain"
|
|
local-search="localDomainSearch"
|
|
title-field="domain"
|
|
minlength="0"
|
|
input-class="form-control trigger-dropdown"
|
|
match-class="highlight">
|
|
</div>
|
|
|
|
<!-- <input type="text" class="form-control" placeholder="Select a domain" aria-label="Domain Name" ng-model="vm.newDomain" ng-change="vm.setDomain()" /> -->
|
|
<div class="input-group-btn">
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default trigger-dropdown" aria-haspopup="true" aria-expanded="false" ng-click="vm.triggerDropdown()"><span class="caret"></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<!--
|
|
Choose or create a public shared folder <button class="btn btn-default">Select Daplie Folder</button>
|
|
<br>
|
|
-->
|
|
<div class="input-group">
|
|
<div><label>Select .zip upload</label> <input type="file" class="js-file-upload this-has-a-special-non-angular-event-handler" /></div>
|
|
|
|
<div ng-if="vm.isZip" ><label><input type="checkbox" ng-model="vm.unzip" /> Unpack .zip</label></div>
|
|
|
|
<div ng-if="vm.unzip" ><label><input type="checkbox" ng-model="vm.stripZip" /> Strip zip directory root</label></div>
|
|
|
|
<!-- div ng-if="vm.isZip" ><label>Unzip directory</label> <input type="text" ng-model="vm.unzipPath" /></div -->
|
|
|
|
<div><label>Web path</label> <input type="text" ng-model="vm.webPath" /></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
Who can edit and upload to this site? <input placeholder="Type contact name or email address" type="text" class="form-control">
|
|
</div>
|
|
</div>
|
|
-->
|
|
<!-- <div class="form-group">
|
|
<div class="pull-right"> -->
|
|
<button ng-click="vm.createWebsite()" type="button" name="button" class="btn btn-default">Create Website</button>
|
|
<!-- </div>
|
|
</div> -->
|
|
</div>
|
|
<div class="white-well">
|
|
<h1>Your Websites</h1>
|
|
<table class="table">
|
|
<tbody>
|
|
<tr ng-repeat="r in vm.sites">
|
|
<td><a ng-href="https://{{r.domain}}" target="_blank" ng-bind="r.domain">example.com</a></td>
|
|
<td ng-bind="r.path">Sites > blogs > blog.jane.smith.net</td>
|
|
<td ng-bind="r.users">jane@smith.net, jack@smith.net, friend@gmail.com</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|