docs: #352 verified date and ignore in category are now editable through UI
This commit is contained in:
parent
a5837bc388
commit
d858eb774a
@ -290,7 +290,10 @@
|
||||
locationId: locationId,
|
||||
year: year,
|
||||
month: month,
|
||||
day: day
|
||||
day: day,
|
||||
verifiedDate: $("#verifiedDate").is(':checked'),
|
||||
ignoreInCategory: $("#ignoreInCategory").is(':checked'),
|
||||
|
||||
},
|
||||
success: function() {
|
||||
location.reload();
|
||||
@ -1251,9 +1254,18 @@ else
|
||||
<td>
|
||||
<input type="text" id="day" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="verifiedDate" />
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="ignoreInCategory" />
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<td colspan="7">
|
||||
<a role="button" class="pagebutton" onclick="newGeoDateTag(@Model.PageInformation.Id)">برچسب جدید</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -458,7 +458,7 @@ namespace GanjooRazor.Areas.User.Pages
|
||||
|
||||
}
|
||||
|
||||
public async Task<IActionResult> OnPostNewGeoDateTagAsync(int poemId, int locationId, string year, int month, string day)
|
||||
public async Task<IActionResult> OnPostNewGeoDateTagAsync(int poemId, int locationId, string year, int month, string day, bool verifiedDate, bool ignoreInCategory)
|
||||
{
|
||||
using (HttpClient secureClient = new HttpClient())
|
||||
{
|
||||
@ -473,7 +473,9 @@ namespace GanjooRazor.Areas.User.Pages
|
||||
LocationId = locationId == 0 ? null : locationId,
|
||||
LunarYear = string.IsNullOrEmpty(year) ? null : int.Parse(year),
|
||||
LunarMonth = month == 0 ? null : month,
|
||||
LunarDay = string.IsNullOrEmpty(day) ? null : int.Parse(day)
|
||||
LunarDay = string.IsNullOrEmpty(day) ? null : int.Parse(day),
|
||||
VerifiedDate = verifiedDate,
|
||||
IgnoreInCategory = ignoreInCategory,
|
||||
}
|
||||
),
|
||||
Encoding.UTF8,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user