|
|
|
|
@ -193,61 +193,64 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="docs-content-field">
|
|
|
|
|
<div class="position-relative">
|
|
|
|
|
@if (Model.Document.Contributors != null && Model.Document.Contributors.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
<div class="contributors">
|
|
|
|
|
<small class="text-muted">@(L["Contributors"].Value + " :")</small>
|
|
|
|
|
@foreach (var contributor in Model.Document.Contributors)
|
|
|
|
|
{
|
|
|
|
|
<a href="@contributor.UserProfileUrl" target="_blank">
|
|
|
|
|
<img src="@contributor.AvatarUrl"
|
|
|
|
|
class="contributors-avatar" height="21" width="21" title="@contributor.Username" />
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@if (Model.DocumentPreferences != null && Model.DocumentPreferences.Parameters != null && Model.DocumentPreferences.Parameters.Any())
|
|
|
|
|
{
|
|
|
|
|
<div class="alert alert-primary">
|
|
|
|
|
<abp-row>
|
|
|
|
|
<p class="ml-3">
|
|
|
|
|
<i class="fa fa-info-circle"></i>
|
|
|
|
|
</p>
|
|
|
|
|
</abp-row>
|
|
|
|
|
<abp-row>
|
|
|
|
|
@foreach (var parameter in Model.DocumentPreferences.Parameters)
|
|
|
|
|
<div class="docs-text-field">
|
|
|
|
|
<div class="position-relative">
|
|
|
|
|
@if (Model.Document.Contributors != null && Model.Document.Contributors.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
<div class="contributors">
|
|
|
|
|
<small class="text-muted">@(L["Contributors"].Value + " :")</small>
|
|
|
|
|
@foreach (var contributor in Model.Document.Contributors)
|
|
|
|
|
{
|
|
|
|
|
<abp-column size="_6" abp-rounded="_0">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<span class="input-group-text" id="@("Section" + parameter.Name + "ComboboxAddonId")">@(parameter.DisplayName + ":")</span>
|
|
|
|
|
</div>
|
|
|
|
|
<select class="doc-section-combobox form-control"
|
|
|
|
|
aria-describedby="@("Section" + parameter.Name + "ComboboxAddonId")"
|
|
|
|
|
id="@("Section" + parameter.Name + "ComboboxId")" data-key="@parameter.Name">
|
|
|
|
|
@foreach (var value in parameter.Values)
|
|
|
|
|
{
|
|
|
|
|
@if (value.Key == (Model.UserPreferences.ContainsKey(parameter.Name) ? Model.UserPreferences[parameter.Name] : null))
|
|
|
|
|
{
|
|
|
|
|
<option value="@value.Key" selected="selected">@value.Value</option>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
<a href="@contributor.UserProfileUrl" target="_blank">
|
|
|
|
|
<img src="@contributor.AvatarUrl"
|
|
|
|
|
class="contributors-avatar" height="21" width="21" title="@contributor.Username" />
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@if (Model.DocumentPreferences != null && Model.DocumentPreferences.Parameters != null && Model.DocumentPreferences.Parameters.Any())
|
|
|
|
|
{
|
|
|
|
|
<div class="alert alert-primary alert-criteria">
|
|
|
|
|
<abp-row>
|
|
|
|
|
<abp-column>
|
|
|
|
|
<p class="alert-p mb-2">
|
|
|
|
|
<i class="fa fa-info-circle"></i>
|
|
|
|
|
This document is customized according to the following criteria.
|
|
|
|
|
</p>
|
|
|
|
|
</abp-column>
|
|
|
|
|
</abp-row>
|
|
|
|
|
<abp-form-row>
|
|
|
|
|
@foreach (var parameter in Model.DocumentPreferences.Parameters)
|
|
|
|
|
{
|
|
|
|
|
<abp-column size="_4">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<span class="input-group-text" id="@("Section" + parameter.Name + "ComboboxAddonId")">@(parameter.DisplayName)</span>
|
|
|
|
|
</div>
|
|
|
|
|
<select class="doc-section-combobox form-control"
|
|
|
|
|
aria-describedby="@("Section" + parameter.Name + "ComboboxAddonId")"
|
|
|
|
|
id="@("Section" + parameter.Name + "ComboboxId")" data-key="@parameter.Name">
|
|
|
|
|
@foreach (var value in parameter.Values)
|
|
|
|
|
{
|
|
|
|
|
<option value="@value.Key">@value.Value</option>
|
|
|
|
|
@if (value.Key == (Model.UserPreferences.ContainsKey(parameter.Name) ? Model.UserPreferences[parameter.Name] : null))
|
|
|
|
|
{
|
|
|
|
|
<option value="@value.Key" selected="selected">@value.Value</option>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<option value="@value.Key">@value.Value</option>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</abp-column>
|
|
|
|
|
}
|
|
|
|
|
</abp-row>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</abp-column>
|
|
|
|
|
}
|
|
|
|
|
</abp-form-row>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="docs-text-field">
|
|
|
|
|
<div data-spy="scroll" data-target="#docs-sticky-index" data-offset="0">
|
|
|
|
|
<article class="docs-body">
|
|
|
|
|
|
|
|
|
|
@ -297,3 +300,5 @@
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|