⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 create.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1074451156',        'name' => 'attachment/create.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n";    #line 23 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n\n";    #line 25 "template\en\default\attachment\create.html.tmpl"        # CAPTURE    $stash->set('title', do {        my $output = '';    $output .=  "Create New Attachment for ";    #line 25 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  " #";    #line 25 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get('bugid');        $output;    });        #line 26 "template\en\default\attachment\create.html.tmpl"        # CAPTURE    $stash->set('h1', do {        my $output = '';    $output .=  "Create New Attachment for\n  ";    #line 0 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['GetBugLink', [ $stash->get('bugid'), ($stash->get(['terms', 0, 'Bug', 0]) . " " . $stash->get('bugid')) ]]);        $output;    });        #line 26 "template\en\default\attachment\create.html.tmpl"        # CAPTURE    $stash->set('h2', do {        my $output = '';    #line 26 "template\en\default\attachment\create.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('bugsummary');                &$filter($output);    };            $output;    });        $output .=  "\n";    #line 29 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'h1' => $stash->get('h1'), 'h2' => $stash->get('h2'), 'style' => '        table.attachment_entry th {          text-align: right;          vertical-align: baseline;          white-space: nowrap;        }            table.attachment_entry td {          text-align: left;          vertical-align: baseline;          padding-bottom: 5px;        }      ', 'onload' => 'setContentTypeDisabledState();' });    $output .=  "\n\n<form name=\"entryform\" method=\"post\" action=\"attachment.cgi\" enctype=\"multipart/form-data\">\n  <input type=\"hidden\" name=\"bugid\" value=\"";    #line 50 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get('bugid');    $output .=  "\">\n  <input type=\"hidden\" name=\"action\" value=\"insert\">\n\n  <table class=\"attachment_entry\">\n    <tr>\n      <th>File:</th>\n      <td>\n        <em>Enter the path to the file on your computer.</em><br>\n        <input type=\"file\" name=\"data\" size=\"50\">\n      </td>\n    </tr>\n    <tr>\n      <th>Description:</th>\n      <td>\n        <em>Describe the attachment briefly.</em><br>\n        <input type=\"text\" name=\"description\" size=\"60\" maxlength=\"200\">\n      </td>\n    </tr>\n    <tr>\n      <th></th>\n      <td>\n      </td>\n    </tr>\n    <tr>\n      <th>Content Type:</th>\n      <td>\n        <em>If the attachment is a patch, check the box below.</em><br>\n        <input type=\"checkbox\" id=\"ispatch\" name=\"ispatch\" value=\"1\"\n               onchange=\"setContentTypeDisabledState();\">\n        <label for=\"ispatch\">patch</label><br><br>\n\n        <em>Otherwise, choose a method for determining the content type.</em><br>\n        <input type=\"radio\" id=\"autodetect\"\n               name=\"contenttypemethod\" value=\"autodetect\">\n          <label for=\"autodetect\">auto-detect</label><br>\n        <input type=\"radio\" id=\"list\"\n               name=\"contenttypemethod\" value=\"list\">\n          <label for=\"list\">select from list:</label>\n          <select name=\"contenttypeselection\"\n                  onchange=\"this.form.contenttypemethod[1].checked = true;\">";    #line 91 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->process('attachment/content-types.html.tmpl');    $output .=  "\n          </select><br>\n        <input type=\"radio\" id=\"manual\"\n                     name=\"contenttypemethod\" value=\"manual\">\n          <label for=\"manual\">enter manually:</label>\n          <input type=\"text\" name=\"contenttypeentry\" size=\"30\" maxlength=\"200\"\n                 onchange=\"if (this.value) this.form.contenttypemethod[2].checked = true;\">\n      </td>\n    </tr>";    #line 111 "template\en\default\attachment\create.html.tmpl"    if (($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['UserInGroup', [ $stash->get(['Param', [ 'insidergroup' ]]) ]]))) {    $output .=  "\n      <tr>\n        <th>Privacy:</th>\n        <td>\n          <em>If the attachment is private, check the box below.</em><br>\n          <input type=\"checkbox\" name=\"isprivate\" id=\"isprivate\" value=\"1\">\n        <label for=\"isprivate\">Private</label>\n        </td>\n      </tr>";    }        $output .=  "\n    <tr>\n      <th>Obsoletes:</th>\n      <td>\n        <em>(optional) Check each existing attachment made obsolete by your new attachment.</em><br>";    #line 126 "template\en\default\attachment\create.html.tmpl"    if ($stash->get(['attachments', 0, 'size', 0])) {    #line 123 "template\en\default\attachment\create.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('attachments');                unless (UNIVERSAL::isa($list, 'Template::Iterator')) {            $list = Template::Config->iterator($list)                || die $Template::Config::ERROR, "\n";         }            ($value, $error) = $list->get_first();        eval { $oldloop = $stash->get('loop') };        $stash->set('loop', $list);        eval {    LOOP:   while (! $error) {                $stash->{'attachment'} = $value;    #line 123 "template\en\default\attachment\create.html.tmpl"    if ((($stash->get(['attachment', 0, 'isprivate', 0]) eq 0) || ($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['UserInGroup', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])))) {    $output .=  "\n              <input type=\"checkbox\" id=\"";    #line 119 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\"\n                   name=\"obsolete\" value=\"";    #line 120 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\">\n              <a href=\"attachment.cgi?id=";    #line 121 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "&amp;action=edit\">";    #line 121 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  ": ";    #line 121 "template\en\default\attachment\create.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'description', 0]);                &$filter($output);    };        $output .=  "</a><br>";    }    ;                ($value, $error) = $list->get_next();            }        };        $stash->set('loop', $oldloop);        die $@ if $@;        $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;        die $error if $error;    };        }    else {    $output .=  "\n            [no attachments can be made obsolete]";    }        $output .=  "\n      </td>\n    </tr>\n";    #line 142 "template\en\default\attachment\create.html.tmpl"    if (($stash->get(['user', 0, 'id', 0]) ne $stash->get('bugassignee_id')) && $stash->get(['user', 0, 'groups', 0, 'editbugs', 0])) {    $output .=  "\n      <tr>\n        <th>Reassignment:</th>\n        <td>\n          <em>If you want to assign this ";    #line 135 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " to yourself,\n              check the box below.</em><br>\n          <input type=\"checkbox\" id=\"takebug\" name=\"takebug\" value=\"1\">\n          <label for=\"takebug\">take ";    #line 138 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  "</label>\n        </td>\n      </tr>";    }        $output .=  "\n    <tr>\n      <th>Comment:</th>\n      <td>\n        <em>(optional) Add a comment about this attachment to the ";    #line 146 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".</em><br>\n        <textarea wrap=\"soft\" name=\"comment\" rows=\"6\" cols=\"80\"></textarea>\n      </td>\n    </tr>\n    <tr>\n      <th>&nbsp;</th>\n      <td><input type=\"submit\" value=\"Submit\"></td>\n    </tr>\n  </table>\n\n</form>\n\n<script language=\"JavaScript\" type=\"text/javascript\">\n  <!--\n  function setContentTypeDisabledState()\n  {\n    var entryform = document.entryform;\n\n    var isdisabled = false;\n    if (entryform.ispatch.checked)\n      isdisabled = true;\n\n    for (var i=0 ; i<entryform.contenttypemethod.length ; i++)\n      entryform.contenttypemethod[i].disabled = isdisabled;\n\n    entryform.contenttypeselection.disabled = isdisabled;\n    entryform.contenttypeentry.disabled = isdisabled;\n  }\n  //-->\n</script>\n";    #line 178 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n\n\n\n";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -