소스 검색

라벨 추가

잉여개발기 5 달 전
부모
커밋
760a118af6

+ 1 - 1
route/edit_delete_file.py

@@ -38,7 +38,7 @@ async def edit_delete_file(name = 'test.jpg'):
                         <hr class="main_hr">
                         <a href="/image/''' + url_pas(file_all_name) + '''">/image/''' + url_pas(file_all_name) + '''</a>
                         <hr class="main_hr">
-                        <label><input class="__ON_CHECKBOX__" name="with_doc" type="checkbox" checked> ''' + await get_lang('file_delete_with_document') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" name="with_doc" type="checkbox" checked> ''' + await get_lang('file_delete_with_document') + '''</label>
                         <hr class="main_hr">
                         <button class="__ON_BUTTON__" type="submit">''' + await get_lang('file_delete') + '''</button>
                     </form>

+ 1 - 1
route/edit_move.py

@@ -233,7 +233,7 @@ async def edit_move(name):
                             ''' + ('<option value="merge"> ' + await get_lang('merge_move') + '</option>' if owner_auth == 1 else '') + '''
                         </select></span>
                         <hr class="main_hr">
-                        <!-- <label><input class="__ON_CHECKBOX__" type="checkbox" name="move_redirect_make"> ''' + await get_lang('move_redirect_make') + '''</label>
+                        <!-- <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="move_redirect_make"> ''' + await get_lang('move_redirect_make') + '''</label>
                         <hr class="main_hr"> -->
                         
                         <h2>''' + await get_lang('discussion') + '''</h2>

+ 1 - 1
route/give_admin_groups.py

@@ -96,7 +96,7 @@ async def give_admin_groups(name = 'test'):
                 if for_a[1] in acl_list:
                     checked = 'checked'
                     
-                choice = '<label><input class="__ON_CHECKBOX__" type="checkbox" ' + state + ' name="' + for_a[1] + '" ' + checked + '> ' + for_a[2] + '</label>'
+                choice = '<label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" ' + state + ' name="' + for_a[1] + '" ' + checked + '> ' + for_a[2] + '</label>'
                 if for_a[1] == '':
                     choice = for_a[2]
 

+ 1 - 1
route/go_api_topic.py

@@ -14,7 +14,7 @@ def api_topic_thread_make(user_id, date, data, code, color = '', blind = '', add
 
     admin_check_box = ''
     if admin_check == 1 and topic_num != '':
-        admin_check_box = '<label><input type="checkbox" class="opennamu_blind_button __ON_CHECKBOX__" id="opennamu_blind_' + topic_num + '_' + code + '"></label>'
+        admin_check_box = '<label class="__ON_CHECKLABEL__"><input type="checkbox" class="opennamu_blind_button __ON_CHECKBOX__" id="opennamu_blind_' + topic_num + '_' + code + '"></label>'
 
     return '''
         <span class="''' + class_b + '''">

+ 1 - 1
route/login_login.py

@@ -57,7 +57,7 @@ async def login_login():
                             <hr class="main_hr">
                             <input class="__ON_INPUT__" placeholder="''' + await get_lang('password') + '''" name="pw" type="password">
                             <hr class="main_hr">
-                            <!-- <label><input class="__ON_CHECKBOX__" type="checkbox" name="auto_login"> ''' + await get_lang('auto_login') + ''' (''' + await get_lang('not_working') + ''')</label>
+                            <!-- <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="auto_login"> ''' + await get_lang('auto_login') + ''' (''' + await get_lang('not_working') + ''')</label>
                             <hr class="main_hr"> -->
                             ''' + await captcha_get(conn) + '''
                             <button class="__ON_BUTTON__" type="submit">''' + await get_lang('login') + '''</button>

+ 1 - 1
route/main_setting_external.py

@@ -93,7 +93,7 @@ async def main_setting_external():
                         <a href="/setting/phrase#s-6">(''' + await get_lang('text_setting') + ''')</a>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="email_have" ''' + ('checked' if d_list[9] != '' else '')  + '''> ''' + await get_lang('email_required') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="email_have" ''' + ('checked' if d_list[9] != '' else '')  + '''> ''' + await get_lang('email_required') + '''</label>
 
                         <h3>''' + await get_lang('smtp_setting') + '''</h3>
                         <a href="https://support.google.com/mail/answer/7126229">(Google)</a>

+ 15 - 15
route/main_setting_main.py

@@ -165,7 +165,7 @@ async def main_setting_main():
                 <input class="__ON_INPUT__" type="password" name="key" value="''' + html.escape(d_list[11]) + '''">
                 <hr class="main_hr">
                 
-                <label><input class="__ON_CHECKBOX__" type="checkbox" name="wiki_access_password_need" ''' + check_box_div[8] + '''> ''' + await get_lang('set_wiki_access_password_need') + ''' (''' + await get_lang('restart_required') + ''')</label>
+                <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="wiki_access_password_need" ''' + check_box_div[8] + '''> ''' + await get_lang('set_wiki_access_password_need') + ''' (''' + await get_lang('restart_required') + ''')</label>
                 <hr class="main_hr">
                 
                 <span>''' + await get_lang('set_wiki_access_password') + '''</span> (''' + await get_lang('restart_required') + ''')
@@ -179,7 +179,7 @@ async def main_setting_main():
                 
                 <h3>''' + await get_lang('authority_use_list') + '''</h3>
                 
-                <label><input class="__ON_CHECKBOX__" type="checkbox" name="auth_history_off" ''' + check_box_div[14] + '''> ''' + await get_lang('authority_use_list_off') + '''</label>
+                <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="auth_history_off" ''' + check_box_div[14] + '''> ''' + await get_lang('authority_use_list_off') + '''</label>
                 <hr class="main_hr">
                 
                 <span>''' + await get_lang('authority_use_list_expiration_date') + '''</span> (''' + await get_lang('day') + ''') (''' + await get_lang('off') + ''' : ''' + await get_lang('empty') + ''')
@@ -189,13 +189,13 @@ async def main_setting_main():
 
                 <h3>''' + await get_lang('communication_set') + '''</h3>
                 
-                <label><input class="__ON_CHECKBOX__" type="checkbox" name="enable_comment" ''' + check_box_div[5] + '''> ''' + await get_lang('enable_comment_function') + '''</label>
+                <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="enable_comment" ''' + check_box_div[5] + '''> ''' + await get_lang('enable_comment_function') + '''</label>
                 <hr class="main_hr">
 
-                <label><input class="__ON_CHECKBOX__" type="checkbox" name="user_name_level" ''' + check_box_div[15] + '''> ''' + await get_lang('display_level_in_user_name') + '''</label>
+                <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="user_name_level" ''' + check_box_div[15] + '''> ''' + await get_lang('display_level_in_user_name') + '''</label>
                 <hr class="main_hr">
 
-                <label><input class="__ON_CHECKBOX__" type="checkbox" name="not_use_view_count" ''' + check_box_div[16] + '''> ''' + await get_lang('not_use_view_count') + '''</label>
+                <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="not_use_view_count" ''' + check_box_div[16] + '''> ''' + await get_lang('not_use_view_count') + '''</label>
                 <hr class="main_hr">
             '''
 
@@ -212,24 +212,24 @@ async def main_setting_main():
 
                         <h2>''' + await get_lang('render_set') + '''</h2>
                         
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="namumark_compatible" ''' + check_box_div[10] + '''> ''' + await get_lang('namumark_fully_compatible_mode') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="namumark_compatible" ''' + check_box_div[10] + '''> ''' + await get_lang('namumark_fully_compatible_mode') + '''</label>
                         <hr class="main_hr">
                         
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="link_case_insensitive" ''' + check_box_div[12] + '''> ''' + await get_lang('link_case_insensitive') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="link_case_insensitive" ''' + check_box_div[12] + '''> ''' + await get_lang('link_case_insensitive') + '''</label>
                         <hr class="main_hr">
 
                         <h2>''' + await get_lang('login_set') + '''</h2>
                         
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="reg" ''' + check_box_div[0] + '''> ''' + await get_lang('no_register') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="reg" ''' + check_box_div[0] + '''> ''' + await get_lang('no_register') + '''</label>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="ip_view" ''' + check_box_div[1] + '''> ''' + await get_lang('hide_ip') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="ip_view" ''' + check_box_div[1] + '''> ''' + await get_lang('hide_ip') + '''</label>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="user_name_view" ''' + check_box_div[11] + '''> ''' + await get_lang('hide_user_name') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="user_name_view" ''' + check_box_div[11] + '''> ''' + await get_lang('hide_user_name') + '''</label>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="requires_approval" ''' + check_box_div[3] + '''> ''' + await get_lang('requires_approval') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="requires_approval" ''' + check_box_div[3] + '''> ''' + await get_lang('requires_approval') + '''</label>
                         <hr class="main_hr">
 
                         <span>''' + await get_lang('password_min_length') + '''</span> (''' + await get_lang('off') + ''' : ''' + await get_lang('empty') + ''')
@@ -243,7 +243,7 @@ async def main_setting_main():
 
                         <h3>''' + await get_lang('ua') + '''</h3>
                         
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="ua_get" ''' + check_box_div[4] + '''> ''' + await get_lang('ua_get_off') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="ua_get" ''' + check_box_div[4] + '''> ''' + await get_lang('ua_get_off') + '''</label>
                         <hr class="main_hr">
                         
                         <span>''' + await get_lang('ua_expiration_date') + '''</span> (''' + await get_lang('day') + ''') (''' + await get_lang('off') + ''' : ''' + await get_lang('empty') + ''')
@@ -287,7 +287,7 @@ async def main_setting_main():
                         <input class="__ON_INPUT__" name="slow_edit" value="''' + html.escape(d_list[19]) + '''">
                         <hr class="main_hr">
                         
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="edit_bottom_compulsion" ''' + check_box_div[7] + '''> ''' + await get_lang('edit_bottom_compulsion') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="edit_bottom_compulsion" ''' + check_box_div[7] + '''> ''' + await get_lang('edit_bottom_compulsion') + '''</label>
                         <hr class="main_hr">
                         
                         <span>''' + await get_lang('title_max_length') + '''</span> (''' + await get_lang('off') + ''' : ''' + await get_lang('empty') + ''')
@@ -305,10 +305,10 @@ async def main_setting_main():
                         <input class="__ON_INPUT__" name="upload" value="''' + html.escape(d_list[4]) + '''">
                         <hr class="main_hr">
                         
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="history_recording_off" ''' + check_box_div[9] + '''> ''' + await get_lang('set_history_recording_off') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="history_recording_off" ''' + check_box_div[9] + '''> ''' + await get_lang('set_history_recording_off') + '''</label>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="move_with_redirect" ''' + check_box_div[13] + '''> ''' + await get_lang('move_with_redirect') + ''' (''' + await get_lang('not_working') + ''')</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="move_with_redirect" ''' + check_box_div[13] + '''> ''' + await get_lang('move_with_redirect') + ''' (''' + await get_lang('not_working') + ''')</label>
                         <hr class="main_hr">
 
                         <span>''' + await get_lang('slow_thread') + '''</span> (''' + await get_lang('second') + ''') (''' + await get_lang('off') + ''' : ''' + await get_lang('empty') + ''')

+ 1 - 1
route/main_setting_robot.py

@@ -44,7 +44,7 @@ async def main_setting_robot():
                     <form method="post">
                         <textarea class="opennamu_textarea_500 __ON_TEXTAREA__" name="content">''' + html.escape(data) + '''</textarea>
                         <hr class="main_hr">
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="default" ''' + default_data + '''> ''' + await get_lang('default') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="default" ''' + default_data + '''> ''' + await get_lang('default') + '''</label>
                         <hr class="main_hr">
                         <button class="__ON_BUTTON__" id="opennamu_save_button" type="submit">''' + await get_lang('save') + '''</button>
                     </form>

+ 5 - 5
route/main_setting_sitemap_set.py

@@ -65,19 +65,19 @@ async def main_setting_sitemap_set():
                         <a href="/setting/sitemap">(''' + await get_lang('sitemap_manual_create') + ''')</a>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[4] + ''' name="sitemap_auto_make"> ''' + await get_lang('sitemap_auto_make') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[4] + ''' name="sitemap_auto_make"> ''' + await get_lang('sitemap_auto_make') + '''</label>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[0] + ''' name="sitemap_auto_exclude_domain"> ''' + await get_lang('stiemap_exclude_domain') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[0] + ''' name="sitemap_auto_exclude_domain"> ''' + await get_lang('stiemap_exclude_domain') + '''</label>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[1] + ''' name="sitemap_auto_exclude_user_page"> ''' + await get_lang('stiemap_exclude_user_page') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[1] + ''' name="sitemap_auto_exclude_user_page"> ''' + await get_lang('stiemap_exclude_user_page') + '''</label>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[2] + ''' name="sitemap_auto_exclude_file_page"> ''' + await get_lang('stiemap_exclude_file_page') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[2] + ''' name="sitemap_auto_exclude_file_page"> ''' + await get_lang('stiemap_exclude_file_page') + '''</label>
                         <hr class="main_hr">
 
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[3] + ''' name="sitemap_auto_exclude_category_page"> ''' + await get_lang('stiemap_exclude_category_page') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" ''' + check_box_div[3] + ''' name="sitemap_auto_exclude_category_page"> ''' + await get_lang('stiemap_exclude_category_page') + '''</label>
                         <hr class="main_hr">
 
                         <button class="__ON_BUTTON__" id="opennamu_save_button" type="submit">''' + await get_lang('save') + '''</button>

+ 1 - 1
route/tool/func.py

@@ -1880,7 +1880,7 @@ def get_edit_text_bottom_check_box(conn):
             ''
         else:
             cccb_text = '' + \
-                '<label><input class="__ON_CHECKBOX__" type="checkbox" name="copyright_agreement" value="yes"> ' + sql_d[0][0] + '</label>' + \
+                '<label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="copyright_agreement" value="yes"> ' + sql_d[0][0] + '</label>' + \
                 '<hr class="main_hr">' + \
             ''
         

+ 1 - 1
route/topic.py

@@ -138,7 +138,7 @@ async def topic(topic_num = 0, do_type = '', doc_name = 'Test'):
                 '''
                     <script defer src="/views/main_css/js/route/topic.js''' + cache_v() + '''"></script>
                     <style id="opennamu_list_hidden_style">.opennamu_list_hidden { display: none; }</style>
-                    <label><input class="__ON_CHECKBOX__" type="checkbox" onclick="opennamu_list_hidden_remove();" checked> ''' + await get_lang('remove_hidden') + '''</label>
+                    <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" onclick="opennamu_list_hidden_remove();" checked> ''' + await get_lang('remove_hidden') + '''</label>
                     <hr class="main_hr">
 
                     ''' + shortcut + '''

+ 1 - 1
route/topic_tool_setting.py

@@ -98,7 +98,7 @@ async def topic_tool_setting(topic_num = 1):
                             ''' + stop_d_list + '''
                         </select></span>
                         <hr class="main_hr">
-                        <label><input class="__ON_CHECKBOX__" type="checkbox" name="agree" value="O" ''' + agree_check + '''> ''' + await get_lang('topic_change_agree') + '''</label>
+                        <label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" name="agree" value="O" ''' + agree_check + '''> ''' + await get_lang('topic_change_agree') + '''</label>
 
                         <h2>''' + await get_lang('topic_associate') + '''</h2>
                         ''' + await get_lang('topic_link_vote') + ''' (''' + await get_lang('not_working') + ''')

+ 2 - 2
route/vote_add.py

@@ -62,11 +62,11 @@ async def vote_add():
                         '<hr class="main_hr">' + \
                         '<textarea class="opennamu_textarea_500 __ON_TEXTAREA__" name="data" placeholder="' + await get_lang('1_line_1_q') + '"></textarea>' + \
                         '<hr class="main_hr">' + \
-                        '<label><input class="__ON_CHECKBOX__" type="checkbox" value="Y" name="open_select"> ' + await get_lang('open_vote') + '</label>' + \
+                        '<label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" value="Y" name="open_select"> ' + await get_lang('open_vote') + '</label>' + \
                         '<h2>' + await get_lang('period') + '</h2>'
                         '<input class="__ON_INPUT__" type="date" name="date" pattern="\\d{4}-\\d{2}-\\d{2}">' + \
                         '<hr class="main_hr">' + \
-                        '<label><input class="__ON_CHECKBOX__" type="checkbox" value="Y" name="limitless"> ' + await get_lang('limitless') + '</label>' + \
+                        '<label class="__ON_CHECKLABEL__"><input class="__ON_CHECKBOX__" type="checkbox" value="Y" name="limitless"> ' + await get_lang('limitless') + '</label>' + \
                         '<h2>' + await get_lang('acl') + '</h2>' + \
                         acl_data + ' <a href="/acl/TEST#exp">(' + await get_lang('explanation') + ')</a>' + \
                         '<hr class="main_hr">' + \