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

📄 create.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1163177490',        'name' => 'attachment/create.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n";    #line 25 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n\n";    #line 28 "template\en\default\attachment\create.html.tmpl"        # CAPTURE    $stash->set('title', do {        my $output = '';    $output .=  "Create New Attachment for ";    #line 28 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  " #";    #line 28 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);        $output;    });        #line 30 "template\en\default\attachment\create.html.tmpl"        # CAPTURE    $stash->set('header', do {        my $output = '';    $output .=  "Create New Attachment for\n  ";    #line 0 "template\en\default\attachment\create.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('none')                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('bug_link', [ $stash->get(['bug', 0, 'bug_id', 0]) ])                  || $context->throw($context->error);        $output .=  ($stash->get(['terms', 0, 'Bug', 0]) . " " . $stash->get(['bug', 0, 'bug_id', 0]));                &$_tt_filter($output);    };                    &$_tt_filter($output);    };            $output;    });        #line 31 "template\en\default\attachment\create.html.tmpl"        # CAPTURE    $stash->set('subheader', do {        my $output = '';    #line 31 "template\en\default\attachment\create.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bug', 0, 'short_desc', 0]);                &$_tt_filter($output);    };            $output;    });        $output .=  "\n";    #line 33 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'header' => $stash->get('header'), 'subheader' => $stash->get('subheader'), 'onload' => 'setContentTypeDisabledState(document.entryform);', 'style_urls' => [ 'skins/standard/create_attachment.css' ], 'javascript_urls' => [ 'js/attachment.js' ] });    $output .=  "\n\n<form name=\"entryform\" method=\"post\" action=\"attachment.cgi\" enctype=\"multipart/form-data\">\n  <input type=\"hidden\" name=\"bugid\" value=\"";    #line 43 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['bug', 0, 'bug_id', 0]);    $output .=  "\">\n  <input type=\"hidden\" name=\"action\" value=\"insert\">\n\n  <table class=\"attachment_entry\">";    #line 47 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->process('attachment/createformcontents.html.tmpl');    $output .=  "\n\n    ";    $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 65 "template\en\default\attachment\create.html.tmpl"    if ($stash->get(['attachments', 0, 'size', 0])) {    #line 62 "template\en\default\attachment\create.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('attachments');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'attachment'} = $_tt_value;    #line 61 "template\en\default\attachment\create.html.tmpl"    if ((($stash->get(['attachment', 0, 'isprivate', 0]) eq 0) || ($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['user', 0, 'in_group', [ $stash->get(['Param', [ 'insidergroup' ]]) ]])))) {    $output .=  "\n              <input type=\"checkbox\" id=\"";    #line 58 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\"\n                   name=\"obsolete\" value=\"";    #line 59 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "\">\n              <a href=\"attachment.cgi?id=";    #line 60 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  "&amp;action=edit\">";    #line 60 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['attachment', 0, 'id', 0]);    $output .=  ": ";    #line 60 "template\en\default\attachment\create.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['attachment', 0, 'description', 0]);                &$_tt_filter($output);    };        $output .=  "</a><br>";    }    ;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        }    else {    $output .=  "\n            [no attachments can be made obsolete]";    }        $output .=  "\n      </td>\n    </tr>\n";    #line 79 "template\en\default\attachment\create.html.tmpl"    if (($stash->get(['user', 0, 'id', 0]) ne $stash->get(['bug', 0, 'assigned_to', 0, 'id', 0])) && $stash->get(['user', 0, 'in_group', [ 'editbugs', $stash->get(['bug', 0, 'product_id', 0]) ]])) {    $output .=  "\n      <tr>\n        <th>Reassignment:</th>\n        <td>\n          <em>If you want to assign this ";    #line 73 "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 76 "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><label for=\"comment\">Comment:</label></th>\n      <td>\n        <em>(optional) Add a comment about this attachment to the ";    #line 83 "template\en\default\attachment\create.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".</em><br>";    #line 84 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->include('global/textarea.html.tmpl', { 'name' => 'comment', 'id' => 'comment', 'minrows' => 6, 'maxrows' => 15, 'cols' => '80', 'wrap' => 'soft' });    $output .=  "\n      </td>\n    </tr>";    #line 104 "template\en\default\attachment\create.html.tmpl"    if (($stash->get(['Param', [ 'insidergroup' ]]) && $stash->get(['user', 0, 'in_group', [ $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\"\n          value=\"1\" onClick=\"updateCommentPrivacy(this)\">\n        <label for=\"isprivate\">Private</label>\n        </td>\n      </tr>";    }        $output .=  "\n    <tr>\n      <th>&nbsp;</th>\n      <td><input type=\"submit\" id=\"create\" value=\"Submit\"></td>\n    </tr>\n  </table>\n\n</form>\n";    #line 113 "template\en\default\attachment\create.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

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