Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions webui/ui/dialog/hyperlink/hyperlink.tpl.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="modal-header">
<h3 class="modal-title">链接</h3>
<h3 class="modal-title">链接/Link</h3>
</div>
<div class="modal-body">
<form>
<div class="form-group" id="link-url-wrap" ng-class="{true: 'has-success', false: 'has-error'}[urlPassed]">
<label for="link-url">链接地址:</label>
<label for="link-url">链接地址/URL:</label>
<input type="text"
class="form-control"
ng-model="url"
Expand All @@ -15,12 +15,12 @@ <h3 class="modal-title">链接</h3>
placeholder="必填:以 http(s):// 或 ftp:// 开头">
</div>
<div class="form-group" ng-class="{'has-success' : titlePassed}">
<label for="link-title">提示文本:</label>
<label for="link-title">提示文本/Title:</label>
<input type="text" class="form-control" ng-model="title" ng-blur="titlePassed = true" id="link-title" placeholder="选填:鼠标在链接上悬停时提示的文本">
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="ok()">确定</button>
<button class="btn btn-warning" ng-click="cancel()">取消</button>
</div>
<button class="btn btn-primary" ng-click="ok()">确定/OK</button>
<button class="btn btn-warning" ng-click="cancel()">取消/Cancel</button>
</div>
28 changes: 14 additions & 14 deletions webui/ui/dialog/image/image.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ <h3 class="modal-title">图片</h3>
</div>
<div class="modal-body">
<tabset>
<tab heading="图片搜索">
<tab heading="图片搜索/Search">
<form class="form-inline">
<div class="form-group">
<label for="search-keyword">关键词:</label>
<label for="search-keyword">关键词/Search:</label>
<input type="text" class="form-control" ng-model="data.searchKeyword2" id="search-keyword" placeholder="请输入搜索的关键词">
</div>
<button class="btn btn-primary" ng-click="searchImage()">百度一下</button>
<button class="btn btn-primary" ng-click="searchImage()">百度一下/Search</button>
</form>
<div class="search-result" id="search-result">
<ul>
Expand All @@ -20,10 +20,10 @@ <h3 class="modal-title">图片</h3>
</ul>
</div>
</tab>
<tab heading="外链图片">
<tab heading="外链图片/Image">
<form>
<div class="form-group" ng-class="{true: 'has-success', false: 'has-error'}[urlPassed]">
<label for="image-url">链接地址:</label>
<label for="image-url">链接地址/Url:</label>
<input type="text"
class="form-control"
ng-model="data.url"
Expand All @@ -34,28 +34,28 @@ <h3 class="modal-title">图片</h3>
placeholder="必填:以 http(s):// 开头">
</div>
<div class="form-group" ng-class="{'has-success' : titlePassed}">
<label for="image-title">提示文本:</label>
<label for="image-title">提示文本/Title:</label>
<input type="text" class="form-control" ng-model="data.title" ng-blur="titlePassed = true" id="image-title" placeholder="选填:鼠标在图片上悬停时提示的文本">
</div>
<div class="form-group">
<label for="image-preview">图片预览:</label>
<label for="image-preview">图片预览/Image:</label>
<img class="image-preview" id="image-preview" ng-src="{{ data.url }}" alt="{{ data.title }}"/>
</div>
</form>
</tab>
<tab heading="上传图片" active="true">
<tab heading="上传图片/File" active="true">
<form>
<div class="form-group">
<!-- 这里不能用 ng-change -->
<input type="file" name="upload-image" id="upload-image" class="upload-image" accept=".jpg,.JPG,jpeg,JPEG,.png,.PNG,.gif,.GIF" onchange="angular.element(this).scope().uploadImage()"/>
<label for="upload-image" class="btn btn-primary"><span>选择文件&hellip;</span></label>
<label for="upload-image" class="btn btn-primary"><span>选择文件&hellip;/Upload</span></label>
</div>
<div class="form-group" ng-class="{'has-success' : titlePassed}">
<label for="image-title">提示文本:</label>
<label for="image-title">提示文本/Title:</label>
<input type="text" class="form-control" ng-model="data.title" ng-blur="titlePassed = true" id="image-title" placeholder="选填:鼠标在图片上悬停时提示的文本">
</div>
<div class="form-group">
<label for="image-preview">图片预览:</label>
<label for="image-preview">图片预览/Image:</label>
<img class="image-preview" id="image-preview" ng-src="{{ data.url }}" title="{{ data.title }}" alt="{{ data.title }}"/>
</div>
</form>
Expand All @@ -64,6 +64,6 @@ <h3 class="modal-title">图片</h3>

</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="ok()">确定</button>
<button class="btn btn-warning" ng-click="cancel()">取消</button>
</div>
<button class="btn btn-primary" ng-click="ok()">确定/OK</button>
<button class="btn btn-warning" ng-click="cancel()">取消/Cancel</button>
</div>