forked from indymedia/epicyon
Position of checkbox
parent
08ca1d053b
commit
76c8ca03bc
|
@ -5431,6 +5431,27 @@ def htmlPersonOptions(translate: {}, baseDir: str,
|
||||||
petname + '">' \
|
petname + '">' \
|
||||||
'<button type="submit" class="button" name="submitPetname">' + \
|
'<button type="submit" class="button" name="submitPetname">' + \
|
||||||
translate['Submit'] + '</button><br>'
|
translate['Submit'] + '</button><br>'
|
||||||
|
|
||||||
|
if isFollowingActor(baseDir, nickname, domain, optionsActor):
|
||||||
|
if receivingCalendarEvents(baseDir, nickname, domain,
|
||||||
|
optionsNickname, optionsDomainFull):
|
||||||
|
optionsStr += \
|
||||||
|
'<br><input type="checkbox" ' + \
|
||||||
|
'class="profilecheckbox" name="onCalendar" ' + \
|
||||||
|
'selected>' + \
|
||||||
|
translate['Receive calendar events from this account'] + \
|
||||||
|
'<button type="submit" class="button" ' + \
|
||||||
|
'name="submitOnCalendar">' + \
|
||||||
|
translate['Submit'] + '</button>'
|
||||||
|
else:
|
||||||
|
optionsStr += \
|
||||||
|
'<br><input type="checkbox" ' + \
|
||||||
|
'class="profilecheckbox" name="onCalendar">' + \
|
||||||
|
translate['Receive calendar events from this account'] + \
|
||||||
|
'<button type="submit" class="button" ' + \
|
||||||
|
'name="submitOnCalendar">' + \
|
||||||
|
translate['Submit'] + '</button>'
|
||||||
|
|
||||||
optionsStr += optionsLinkStr
|
optionsStr += optionsLinkStr
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
' <button type="submit" class="button" name="submitView">' + \
|
' <button type="submit" class="button" name="submitView">' + \
|
||||||
|
@ -5451,27 +5472,6 @@ def htmlPersonOptions(translate: {}, baseDir: str,
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
' <button type="submit" class="button" name="submitReport">' + \
|
' <button type="submit" class="button" name="submitReport">' + \
|
||||||
translate['Report'] + '</button>'
|
translate['Report'] + '</button>'
|
||||||
if isFollowingActor(baseDir, nickname, domain, optionsActor):
|
|
||||||
actorNickname = getNicknameFromActor(optionsActor)
|
|
||||||
actorDomain, actorPort = getDomainFromActor(optionsActor)
|
|
||||||
if receivingCalendarEvents(baseDir, nickname, domain,
|
|
||||||
actorNickname, actorDomain):
|
|
||||||
optionsStr += \
|
|
||||||
'<br><input type="checkbox" ' + \
|
|
||||||
'class="profilecheckbox" name="onCalendar" ' + \
|
|
||||||
'checked>' + \
|
|
||||||
translate['Receive calendar events from this account'] + \
|
|
||||||
'<button type="submit" class="button" ' + \
|
|
||||||
'name="submitOnCalendar">' + \
|
|
||||||
translate['Submit'] + '</button>'
|
|
||||||
else:
|
|
||||||
optionsStr += \
|
|
||||||
'<br><input type="checkbox" ' + \
|
|
||||||
'class="profilecheckbox" name="onCalendar">' + \
|
|
||||||
translate['Receive calendar events from this account'] + \
|
|
||||||
'<button type="submit" class="button" ' + \
|
|
||||||
'name="submitOnCalendar">' + \
|
|
||||||
translate['Submit'] + '</button>'
|
|
||||||
|
|
||||||
optionsStr += ' </form>'
|
optionsStr += ' </form>'
|
||||||
optionsStr += '</center>'
|
optionsStr += '</center>'
|
||||||
|
|
Loading…
Reference in New Issue